Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3501

solr, how can I make search query with fixed slop(distance)

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: clients - java
    • Labels:
      None

      Description

      I want to search data within fixed slop in Solr.

      For example, I make search query 'title:+solr +user ~2' for search some data which have 'solr' and 'user' within 2 slops. But it's not working in Solr. I get some parameter, defType=edismax, pf, qs, ps. It's not change the search result, but order.

      If I use Phrase Query just like 'title:"solr user"~2', it can't get the result just like "... users for solr ..." which have not keywords in order.

      How Can I do? Help me.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ourlight ourlight
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: