This won't work.  But you could add all 4 docs with the same "123" value in 
their id fields, just comment out uniqueKey field.  Don't ask me what will or 
will not happen when you later try updating a document with id:123...

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


>________________________________
>From: kiran.bodigam <kiran.bodi...@gmail.com>
>To: solr-user@lucene.apache.org
>Sent: Tuesday, October 18, 2011 7:14 AM
>Subject: How to retreive multiple documents using one unique field?
>
>I have four different documents in single xml file(to be indexed), i don't
>want inject the unique field  for each and every document .when i search
>with with the unique field all the four documents should come in result.i.e
>can common unique field should be applied to the all documents?
>My xml format :
><add>
><doc><field></field></doc>
><doc><field></field></doc>
><doc><field></field></doc>
><doc><field></field></doc>
><commonunique><id>123</id></commonunique>
></add>
>If i search for 123 all the four documents should come Is it possible ?
>
>--
>View this message in context: 
>http://lucene.472066.n3.nabble.com/How-to-retreive-multiple-documents-using-one-unique-field-tp3430931p3430931.html
>Sent from the Solr - User mailing list archive at Nabble.com.
>
>
>

Reply via email to