lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reza Ghaffaripour <reza...@gmail.com>
Subject repeating fields
Date Wed, 07 Dec 2005 08:49:45 GMT
hi all,
im new to lucene. i have an xml with repeating tags.something like :
<a>
<p>x</p>
<p>xx</p>
<p>xxx</p>
<p>xxxx</p>
</a>

I add the "p" field as follows:
myDocument.add(Field.Text("p", "x"));
myDocument.add(Field.Text("p", "xx"));

but when i search for "x" it returns the first hit only.
what should i do ? i want to search for "x" and get all the 4 hits.

--
Reza Ghaffaripour
www.rezaghp.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message