-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updates for solr based search #1091
Conversation
This issue aims to address #580 |
Setup notes updated in #1091 (comment) |
A few other notes after discussing with @fdefalco:
Nice to haves:
|
@fdefalco - this is back to you for review. I've addressed the notes mentioned in #1091 (comment) as well as feedback from @pavgra regarding the use of We can look at creating a new issue for Atlas 3.0 for the "nice to haves" mentioned above; let me know if you agree with that. Still outstanding is:
|
@@ -46,6 +46,7 @@ | |||
<person.viewDates>false</person.viewDates> | |||
<!-- Full Text Search With SOLR Settings --> | |||
<solr.endpoint></solr.endpoint> | |||
<solr.query.prefix>{!complexphrase inOrder=true}</solr.query.prefix> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating the default query behavior to use the SOLR ComplexPhraseQueryParser: https://lucene.apache.org/solr/guide/6_6/other-parsers.html#OtherParsers-ComplexPhraseQueryParser. This will allow for searches that are closer in behavior to the SQL Wildcard search.
@@ -305,12 +305,14 @@ | |||
<filter class="solr.FlattenGraphFilterFactory"/> | |||
--> | |||
<filter class="solr.LowerCaseFilterFactory"/> | |||
<filter class="solr.ASCIIFoldingFilterFactory"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handles unicode characters: https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html
Final Setup Notes for WikiThese instructions will focus on Windows since Solr deployment on Linux is covered on Solr install guide. Install the Solr Windows ServiceWe will use Apache Procrun to wrap Solr 8.3.1 in a Windows service to ensure we can control start up/shutdown like other services. To do this, follow the following steps
NOTE: Adjust the Run a Windows Command Prompt in Administrator mode and then run Creating the Solr core for WebAPI vocabulary searchNOTE: The name of the Solr core used must match the vocabulary version you plan to use in ATLAS & WebAPI with an underscore. For this example, the vocabulary version is "v5.0 17-JUN-19" and the corresponding folder name to hold this vocabulary is "v5.0_17-JUN-19". You should verify your vocabulary by running the following query on the CDM(s) you plan to use with WebAPI:
If your vocabulary version and core do not match, WebAPI will not find the Solr core and it will continue to use the DB when querying the vocabulary. Solr core creation
Building the Solr coreNext, start up the Solr windows service and verify connect to http://localhost:8983. If there are problems starting up the service, please review the logs found in
WebAPI ConfigurationIn the settings.xml for WebAPI, add the following XML to your profile:
Recompile and deploy WebAPI.war. Once deployed, verify that the SOLR service is available for search by going to the endpoint
Note in the JSON above, the |
Updated to use SOLR 8.11.1 due to log4j vulnerabilityInstall the Solr Service on RedHat (tested on v7)Download the binary and install (sudo is needed)
Solr core creation
Building the Solr coreNext, start up the Solr service (
Then, follow the rest of the WebAPI instructions in the Windows instructions above. |
@anthonysena - the query for the core only uses the concept table, should it also union STCM records? I know STCM is deprecated (ish), but there are site-specific mappings we (and I believe others) use there. |
Updated to use SOLR 8.11.1 due to log4j vulnerabilityInstall SOLR using DockerOn Windows/Mac:Download Docker desktop app (https://www.docker.com/products/docker-desktop). On Debian/Ubuntu Linux:
On RHEL:
Solr core creation
Build/create/start the docker container
Building the Solr core
Then, follow the rest of the WebAPI configuration instructions in the Windows instructions above. |
With Atlas 2.12 adding invalid_start_date and invalid_end_date, the SOLR core creation now needs to handle these fields. Edit: never mind, handled already |
No description provided.