Advanced search option in Solr matching DtSearch parameters

We are replacing the search and indexing module in the DtSearch application with Solr, using solrnet as the Solr .net library.

We are relatively new to Solr / Lucene and need some help / direction to understand the more advanced search options in Solr.

The current application supports the following search options using DtSearch:

1) Word (s) or phrase

2) Exact words or phrases

3) Not these words or phrases

4) One or more words ("A" OR "B" OR "C")

5) Closeness of a word with n words of another word

6) Numeric range - From - to

7) Option

... Stemming (search * find search or search)

... Synonym (search and search search or look)

... Fuzzy within n letters (p% arts finds paris)

... Background homonyms (# Smith also finds Smith and Smythe)

As an example, a search query that is generated to be posted to DtSearch for the following use:

  • Search phrase: general collection

  • Exact phrase: linq

  • Not these words: sql

  • One or more of these words: ICollection or ArrayList or Hashtable

  • Proximity: csharp within 4 words of the language

  • Parameters:

    and. Morphological

    b. Synonym

    from. Fuzzy within 2 letters

    e. Background homonyms

    Search query: generic * collection * generic & Collection & # generic # collection g %% eneric c %% ollection "linq" -sql ICollection OR ArrayList OR Hashtable csharp w / 4 language

We were able to do simple searches (search by terminology in the content file) with highlighting using Solr. Now we need to replace these Solr / Lucene parameters.

Can anyone provide some guidance on what / where we should look.

+3


source to share


1 answer


  • The
    Solr word or phrase provides support for querying fields and variable promotion fields for relevance control. Solr also provides a wide variety of queries like phrase query, wildcard, prefix to match

  • Exact Words or Phrases
    You can customize Solr to handle phrase matches and exact word matches.

  • Not these words or phrases
    Negative Queries - Solr provides support for boolean operators that involve negative queries using -

    eitherNot

  • One or more words ("A" OR "B" OR "C")
    Logical Operators - Solr provides support for boolean operators, which include syntaxAND (+)

    OR

  • Proximity of a word with n words of another word Mix
    Search - Solr supports proximity queries using the ~ operator followed by slop (proximity difference)

  • Numeric Range - From - to Range Queries - Solr supports range queries for numbers and dates.

  • Option

    • Stemming (search * find search or search) Stemmer - Solr has built-in stem items that can be included directly out of the box. It also allows you to define a new stem Detail Language analysis support for different languages

    • Synonym (search and search look or look)
      Synonym - Solr supports handling synonyms using a file-based approach.

    • Fuzzy within n letters (p% arts matches paris)
      Fuzzy search - Solr supports fuzzy search using the ~ operator

    • Phonic homonyms (# Smith also finds Smith and Smythe)
      Phonetic search - Solr provides phonetic search, allowing matches for misspelled words. It has built-in support for 4 filters that can be customized.



Complete List of AnalyzersTokenizersTokenFilters

+2


source







All Articles