he phrases companion and man exist in the same term in
> >>> RECORD2,
> >>> I do not want RECORD2 to be returned because 'man' is not at the
> >> beginning
> >>> of the word.
> >>>
> >>> How can I achieve this?
> >&g
t; In the above example. I would want to return only RECORD1.
>>>
>>> The query as it exists right now is designed to only match records where
>>> both words are present in the same term. So if I changed man to mankind
>> in
>>> the query, RE
PhraseQueryParser ?
http://lucene.apache.org/java/3_1_0/api/all/org/apache/lucene/queryParser/complexPhrase/ComplexPhraseQueryParser.html
Ludovic
-
Jouve
France.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Matching-the-beginning-of-a-word-within-a-term-tp2754668p276
resent in the same term. So if I changed man to mankind
> in
> > the query, RECORD1 will be returned.
> >
> > Even though the phrases companion and man exist in the same term in
> > RECORD2,
> > I do not want RECORD2 to be returned because 'man' is not at
the beginning
> of the word.
>
> How can I achieve this?
>
> Thanks,
>
> Brian Lamb
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/Matching-t
Hi all,
I have a field set up like this:
And I have some records:
RECORD1
companion to mankind
pooch
RECORD2
companion to womankind
man's worst enemy
I would like to write a query that will match the beginning of a word within
the term. Here is the query I would use as it exists now:
ht