hon-lucene-synonyms | Solr query parser plugin that performs proper query | Search Engine library
kandi X-RAY | hon-lucene-synonyms Summary
kandi X-RAY | hon-lucene-synonyms Summary
Lucene/Solr Synonym-Expanding EDisMax Parser
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse the Solr query
- Returns a list of alternate query strings for the given query
- This method is only intended to be used for testing purposes
- Generates a list of all synonym queries
- Add debug info
- Return this attribute as a list
- Add debug info
- Returns a parser for the given qstr
- Parse the configuration
- Converts a named list into a map
- Returns the query parameters for the given boolean parameter
- Returns the full query
- Returns the default highlight fields
- Compares two TextInQuery
- Returns the param or null
- Compare two TextQuery objects
- Creates a hash code for the seed
- Gets the names of the delegate parameters
hon-lucene-synonyms Key Features
hon-lucene-synonyms Examples and Code Snippets
Community Discussions
Trending Discussions on hon-lucene-synonyms
QUESTION
I am stuck during synonym implementation in solr. Normal Multi-Term is working fine, but our client is demanding that the result for Searched Term should appear at top and then results for its synonyms should appear. I haven't came across any way yet so I am posting this here. Any help would be very appreciable. Also, boosting is applied to search fields and operators like "AND" "OR" are used in query. Following is the example with query: Synonyms Configured: "integrated campaign,campaign framework"
Search Term 1: "integrated campaign" Search Result 1: Records with integrated campaign appear first while records with campaign framework appears second.
Search Term 2: "campaign framework" Search Result 2: Here again Records with integrated campaign appear first while records with campaign framework appears second.
Expected outcome: Search Result 1: Records with integrated campaign appear first while records with campaign framework appears second.
Search Result 2: Records with campaign framework appear first while records with integrated campaign appears second.
I have also tried Nolan's plugin for phrase queries during multi-word synonyms https://github.com/healthonnet/hon-lucene-synonyms
Following is my solr query:
q=has_presentation_b:(True)+AND+(-exclude_from_search_b:(True))+AND+(title_t:(%22integrated+campaign%22))+OR+(promotional_keywords_t:(%22integrated+campaign%22))+OR+(promotional_description_t:(%22integrated+campaign%22))+OR+(abstract_t:(%22integrated+campaign%22))+OR+(body_t:(%22integrated+campaign%22))
Solr Version: 6.3.0
Thanks, Lalit Joshi
...ANSWER
Answered 2019-Apr-29 at 13:09Add a second field with the same processing chain, but without synonym expansion. Boost this field appropriately (by using field_name:query^
or supplying the field in qf
) when searching, so that any hits in that field are worth more than hits in the field that has synonyms expanded.
QUESTION
I'm trying to figure out how to use this plugin:
https://github.com/healthonnet/hon-lucene-synonyms
If I run:
It works as I want, and I get the debugging telling me that its doing what I want:
...ANSWER
Answered 2017-Sep-09 at 08:25some comments:
filtering out by 'has_fla:1' will work for sure if you just add it as a filter:
&fq=has_fla:1
Not only will it work, it is preferred. The filter does not affect scoring and will be cached for later queries.
that plugin seems to have versions only up to Solr 5.3.1, trying to use it with 6.6 will probably have issues. Are you sure you just cannot multiple word synonyms working with 'sow' and 'SynonymGraphFilter' in plain Solr? check this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hon-lucene-synonyms
You can use hon-lucene-synonyms like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the hon-lucene-synonyms component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page