Re: Search only for single value of Solr multivalue field (part 2)

2018-12-17 Thread Nicolas Paris
On Sun, Dec 16, 2018 at 05:44:30PM -0800, Erick Erickson wrote: > No, the idea is that you have N single valued fields, one for each of > the MV entries you have. The copyField dest would be MV, and only used > in those cases you wanted to match across values. Not saying that's a > great solution,

Re: Search only for single value of Solr multivalue field (part 2)

2018-12-16 Thread Erick Erickson
bq. multiple fields acts as a MV field No, the idea is that you have N single valued fields, one for each of the MV entries you have. The copyField dest would be MV, and only used in those cases you wanted to match across values. Not saying that's a great solution, or if it would even necessarily

Re: Search only for single value of Solr multivalue field (part 2)

2018-12-16 Thread Nicolas Paris
On Sun, Dec 16, 2018 at 09:30:33AM -0800, Erick Erickson wrote: > Have you looked at ComplexPhraseQueryParser here? > https://lucene.apache.org/solr/guide/6_6/other-parsers.html Sure. However, I am using multi-word synonyms and so far the complexphrase does not handle them. (maybe soon ?) > Depen

Re: Search only for single value of Solr multivalue field (part 2)

2018-12-16 Thread Erick Erickson
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 dyna

Search only for single value of Solr multivalue field (part 2)

2018-12-16 Thread Nicolas Paris
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