You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Konstantyn Smirnov <in...@yahoo.com> on 2012/06/06 10:07:07 UTC

Re: Lucene Document Uniqueness question

you can use aggregation for that.

dump a collection of prices as a field with multiple values into a document

//pseudo-code
def doc = new Document(...)
doc.add new Field( 'id', id )
doc.add new Field( 'price', price1 )
doc.add new Field( 'price', price2 )
doc.add new Field( 'price', price3 )
indexWriter.addDocument doc



--
View this message in context: http://lucene.472066.n3.nabble.com/Lucene-Document-Uniqueness-question-tp3986743p3987920.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org