hon-lucene-synonyms | Solr query parser plugin that performs proper query | Search Engine library

 by   healthonnet Java Version: 5.0.5 License: No License

kandi X-RAY | hon-lucene-synonyms Summary

kandi X-RAY | hon-lucene-synonyms Summary

hon-lucene-synonyms is a Java library typically used in Database, Search Engine, Hibernate applications. hon-lucene-synonyms has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub, Maven.

Lucene/Solr Synonym-Expanding EDisMax Parser
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              hon-lucene-synonyms has a low active ecosystem.
              It has 144 star(s) with 69 fork(s). There are 31 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 20 open issues and 41 have been closed. On average issues are closed in 345 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of hon-lucene-synonyms is 5.0.5

            kandi-Quality Quality

              hon-lucene-synonyms has 0 bugs and 0 code smells.

            kandi-Security Security

              hon-lucene-synonyms has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              hon-lucene-synonyms code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              hon-lucene-synonyms does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              hon-lucene-synonyms releases are not available. You will need to build from source code and install.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              It has 1491 lines of code, 89 functions and 26 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed hon-lucene-synonyms and discovered the below as its top functions. This is intended to give you an instant insight into hon-lucene-synonyms implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            hon-lucene-synonyms Key Features

            No Key Features are available at this moment for hon-lucene-synonyms.

            hon-lucene-synonyms Examples and Code Snippets

            No Code Snippets are available at this moment for hon-lucene-synonyms.

            Community Discussions

            QUESTION

            Display result from original search term before the result of its synonyms
            Asked 2019-Apr-29 at 13:09

            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:09

            Add 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.

            Source https://stackoverflow.com/questions/55903775

            QUESTION

            Searching other fields with Solr hon-lucene-synonyms plugin?
            Asked 2017-Sep-09 at 08:25

            I'm trying to figure out how to use this plugin:

            https://github.com/healthonnet/hon-lucene-synonyms

            If I run:

            http://solr.example.com/solr/graphics/select/?q=royalty+free&debugQuery=on&defType=synonym_edismax&synonyms=true

            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:25

            some 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

            Source https://stackoverflow.com/questions/46127683

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install hon-lucene-synonyms

            You can download it from GitHub, Maven.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/healthonnet/hon-lucene-synonyms.git

          • CLI

            gh repo clone healthonnet/hon-lucene-synonyms

          • sshUrl

            git@github.com:healthonnet/hon-lucene-synonyms.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link