[ 
https://issues.apache.org/jira/browse/SOLR-11698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16275741#comment-16275741
 ] 

Doug Turnbull commented on SOLR-11698:
--------------------------------------

I'm considering adding query time config to field aliases for this 
functionality. It builds on an existing feature, and seems to be the least 
error-prone to implement as edismax's query parser is already alias aware. This 
seems to be simpler than adding a whole new "config" idea.

As an example, to override autoGeneratePhraseQueries for a field "text" one 
would write

{code}
&qf=text 
text_autophrase^10&f.text_autophrase.qf=text&f.text_autophrase.autoGeneratePhraseQueries=true
{code}

Similarly, if we had a query-overridable field type setting for analyzer we 
could write

{code}
&qf=text text_synonym_autophrase^10
&f.text_synonym_autophrase.qf=text
&f.text_synonym_autophrase.autoGeneratePhraseQueries=true
&f.text_synonym_autophrase.queryAnalyzer=with_synonyms
{code}

> Query-time per-field query settings (ie analyzers, autoGeneratePhraseQueries, 
> etc)
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-11698
>                 URL: https://issues.apache.org/jira/browse/SOLR-11698
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Doug Turnbull
>
> 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
> _



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to