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
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

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

2018-12-16 Thread Nicolas Paris
xt:([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

Re: Search only for single value of Solr multivalue field

2016-12-16 Thread Leo BRUVRY-LAGADEC
Hi Dorian, Firstly thanks for your response, but it does not seems to work. Here is another example, I want to search document with affiliations contains the NHM (Natural History Museum) of India. So, I want to only get the document with id=2 : 1 NHM, Austria Annamalai Univ, Ind

Re: Search only for single value of Solr multivalue field

2016-12-15 Thread Erick Erickson
Phrase queries and slop and positionIncrementGap ;) The fieldType has a positionIncrementGap. This is the token delta between the end token of one entry and the beginning of the next. so the first entry: IFREMER, Ctr Brest, DRO Geosci Marines, F-29280 Plouzane, France IFREMER would have a positio

Re: Search only for single value of Solr multivalue field

2016-12-15 Thread Dorian Hoxha
You should be able to filter "(word1 in field OR word2 in field) AND NOT(word1 in field AND word2 in field)". Translate that into the right syntax. I don't know if lucene is smart enough to execute the filter only once (it should be i guess). Makes sense ? On Thu, Dec 15, 2016 at 12:12 PM, Leo BRU

Search only for single value of Solr multivalue field

2016-12-15 Thread Leo BRUVRY-LAGADEC
Hi, I have a multivalued field in my schema called "idx_affilliation". IFREMER, Ctr Brest, DRO Geosci Marines, F-29280 Plouzane, France. Univ Lisbon, Ctr Geofis, P-1269102 Lisbon, Portugal. Univ Bretagne Occidentale, Inst Univ Europeen Mer, Lab Domaines Ocean, F-29280 Plouzane, France. Total