Re: Matching the beginning of a word within a term

2011-04-04 Thread Brian Lamb
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

Re: Matching the beginning of a word within a term

2011-04-01 Thread Jan Høydahl
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

Re: Matching the beginning of a word within a term

2011-03-31 Thread lboutros
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

Re: Matching the beginning of a word within a term

2011-03-31 Thread Brian Lamb
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

Re: Matching the beginning of a word within a term

2011-03-30 Thread lboutros
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

Matching the beginning of a word within a term

2011-03-30 Thread Brian Lamb
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