1. Solr
  2. SOLR-629

Fuzzy search with DisMax request handler


    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:


      The DisMax search handler doesn't support fuzzy queries which would be quite useful for our usage of Solr and from what I've seen on the list, it's something several people would like to have.

      Following this discussion , I added the ability to add fuzzy query field in the qf parameter. I kept the patch as conservative as possible.

      The syntax supported is: fieldOne^2.3 fieldTwo~0.3 fieldThree~0.2^-0.4 fieldFour as discussed in the above thread.

      The recursive query aliasing should work even with fuzzy query fields using a very simple rule: the aliased fields inherit the minSimilarity of their parent, combined with their own one if they have one.

      Only the qf parameter support this syntax atm. I suppose we should make it usable in pf too. Any opinion?

      Comments are very welcome, I'll spend the time needed to put this patch in good shape.


      1. dismax_fuzzy_query_field.v0.1.diff
        11 kB
        Guillaume Smet
      2. dismax_fuzzy_query_field.v0.1.diff
        11 kB
        Guillaume Smet
      3. SOLR-629.patch
        14 kB
        Fumiaki Yamaoka
      4. SOLR-629.patch
        16 kB
        Fumiaki Yamaoka

        Issue Links


          Fumiaki Yamaoka made changes -
          Attachment SOLR-629.patch [ 12679393 ]
          Fumiaki Yamaoka made changes -
          Attachment SOLR-629.patch [ 12677416 ]
          Erick Erickson made changes -
          Resolution Won't Fix [ 2 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Erick Erickson made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Jan Høydahl made changes -
          Component/s query parsers [ 12317802 ]
          Yonik Seeley made changes -
          Link This issue is blocked by SOLR-1553 [ SOLR-1553 ]
          David Smiley made changes -
          Link This issue is related to SOLR-758 [ SOLR-758 ]
          Guillaume Smet made changes -
          Attachment dismax_fuzzy_query_field.v0.1.diff [ 12402564 ]
          Guillaume Smet made changes -
          Field Original Value New Value
          Attachment dismax_fuzzy_query_field.v0.1.diff [ 12385976 ]
          Guillaume Smet created issue -


            • Assignee:
              Guillaume Smet
            • Votes:
              5 Vote for this issue
              11 Start watching this issue


              • Created: