lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reza Ghaffaripour <reza...@gmail.com>
Subject Re: repeating fields
Date Wed, 07 Dec 2005 13:48:02 GMT
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 <malcyclark@btinternet.com> wrote:
>
>
> Firstly you should obtain LUKE and check everything is layed out correctly
> in your index.
> Secondly maybe a Wildcard/prefix query or termquery.forexample(termquery):
>
> TermQuery heTerm = new TermQuery(
>            new Term("p",
>                "x"));
>    TermQuery sheTerm = new TermQuery(
>            new Term("p",
>                "xx"));
>    TermQuery theyTerm = new TermQuery(
>            new Term("p",
>                "xxx"));
>
> I'm sure the folks on here will be able to come up with a more efficient
> method.Try obtaining Lucene in Action or look at the examples at
> http://lucenebook.com/
> cheers,
> Malcolm Clark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


--
Reza Ghaffaripour
www.rezaghp.com

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