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

Query-time per-field query settings (ie analyzers, autoGeneratePhraseQueries, etc)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Schema and Analysis
    • None

    Description

      This is an issue wrt to [this email chain](http://lucene.472066.n3.nabble.com/Multiple-Query-Time-Analyzers-in-Solr-td4364540.html) created to discuss the ability to change the query time analyzer in Solr, with input from solrtrey, dsmiley, steve_rowe, and mkhludnev

      Specifically, we ended up with the following
      _
      it seems like there's some consensus around

      • Creating multiple named analyzers per field
      • Referencing those analyzers by name at query time somehow

      I would advocate for refactoring edismax (or making a new query parser) that would allow you to specify per-field query configuration. Then I would advocate refactoring some of the flags autoGeneratePhraseQueries, etc to this query-time config. Then we could follow suit using the same syntax to specify the analyzer to use at query time.

      Perhaps more generally these configuration items can stay on the fieldType, but a syntax could allow them to be overriden per field at query time?

      Finally, another requirement I would add would be the ability to specify the same field twice in qf, but configured to be queries two different ways. Perhaps a syntax like qf=title:config1 title:config2? Where config1 and config2 modify fieldType query flags? Like fieldConfig.config1.autoGeneratePhraseQuerise=false&ieldConfig.config1.queryAnalyzer=no_synonyms

      This sort of thing would in my opinion help both enhance the power of Solr, but with a more consistent vision around how field-specific query settings could be organized
      _

      Attachments

        Activity

          People

            Unassigned Unassigned
            softwaredoug Doug Turnbull
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: