Have you looked at ComplexPhraseQueryParser here? https://lucene.apache.org/solr/guide/6_6/other-parsers.html
But no, there are no plans that I know of to include something that has the notion of searching within MV fields. Depending on how many of these you have, you could do something with dynamic fields. Rather than use a single MV field, use N fields. You'd probably have to copyField or some such to a catch-all field for searches that you wanted to ignore the "mv nature" of the field. I'd be nervous as the number of such fields got into the hundreds however. Best, Erick On Sun, Dec 16, 2018 at 2:54 AM Nicolas Paris <nicolas.pa...@riseup.net> wrote: > > hi > > This question is highly related to a previous one found on the > mailing-list archive [1]. > > I have this document: > > "content_txt":["001 first","002 second"] > I d'like the below query return nothing: > > q=content_txt:(first AND second) > > The method proposed ([1]) by Erick works ok to look for a single value > having BOTH first AND second by setting the field positionIncrementGap > high enough: > > This query returns nothing as expected: > > q=content_txt:("first second"~99) > > > However, this is based on *phrase search*. Phrase search does not allow > to use the below simple query parser features. That's a _HUGE_ limitation! > - regexp > - fuzzy > - whildcard > - ranges > > So the query below does won't match the first field: > > q=content_txt:("[000 TO 001] first"~99) > While this one does match the second and shouldn't! > > q=content_txt:([000 TO 001] AND "second") > > QUESTION: > --------- > Is there a chance such feature will be developed in future SolR version ? I > mean something > allowing considering multivalued fields independently ? A new field > attribute such independentMultivalued=true would be ok ? > > Thanks, > > > [1]: > http://lucene.472066.n3.nabble.com/Search-only-for-single-value-of-Solr-multivalue-field-td4309850.html#a4309893 > > -- > nicolas