I have tried the below code:
Field field = new Field(fieldName, validFieldValue,
(store) ? Field.Store.YES : Field.Store.NO,
(tokenize) ? Field.Index.ANALYZED : Field.Index.NOT_ANALYZED,
Field.TermVector.WITH_POSITIONS_OFFSETS);
However, I still have the same problem. It
@lucene.apache.org
Subject: Re: Problem searching in the same sentence
Hello All:
I am performing the sentence specific phrase search, by adding sentence
by
sentence to the same field as suggested below. Everything works fine,
but
when I display my results, highlighter is not able to find the search
text
Hello All:
I am performing the sentence specific phrase search, by adding sentence by
sentence to the same field as suggested below. Everything works fine, but
when I display my results, highlighter is not able to find the search text
phrase.
The following is my code:
SentenceScanner sentenceSc
Hi Sirish,
see my comments inline...
On Thu, Sep 16, 2010 at 7:39 PM, Sirish Vadala wrote:
>
> Hello All:
>
> Can any one suggest me the best way to allow me to perform a sentence
> specific phrase search?
>
> Eg: Let the indexed text be:
>
> If you are posting a question, please try search firs
Try with multi valued field while indexing i.e. Add each sentence as a separate
field(with the same field name) to the same document. This would give you the
results as you want.
--Original Message--
From: Sirish Vadala
To: java-user@lucene.apache.org
ReplyTo: java-user@lucene.apache.org