Re: repeating fields

2005-12-07 Thread Erik Hatcher
On Dec 7, 2005, at 8:48 AM, Reza Ghaffaripour wrote: I think having different documents will not be a good idea. for me each xml is an ebook. and "p" means paragraph. i have hundereds of paragraphs in every ebook. and i think i should keep each ebook in a single document. am i right ? How

Re: repeating fields

2005-12-07 Thread Malcolm
That's what I have, loads of different tags and (abstract) tags etc in each xml document so a lucene document for each is okay. malcolm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: repeating fields

2005-12-07 Thread Reza Ghaffaripour
I think having different documents will not be a good idea. for me each xml is an ebook. and "p" means paragraph. i have hundereds of paragraphs in every ebook. and i think i should keep each ebook in a single document. am i right ? On 12/7/05, Malcolm <[EMAIL PROTECTED]> wrote: > > > Firstly you

Re: repeating fields

2005-12-07 Thread Malcolm
Firstly you should obtain LUKE and check everything is layed out correctly in your index. Secondly maybe a Wildcard/prefix query or termquery.for example(termquery): TermQuery heTerm = new TermQuery( new Term("p", "x")); TermQuery sheTerm = new TermQuery( ne

Re: repeating fields

2005-12-07 Thread Erik Hatcher
On Dec 7, 2005, at 3:49 AM, Reza Ghaffaripour wrote: hi all, im new to lucene. i have an xml with repeating tags.something like : x xx xxx 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 t