RE: Creating search query

2008-01-24 Thread spring
Yes, sorry, that's the case. Thank you! > -Original Message- > From: Erick Erickson [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 24. Januar 2008 19:49 > To: java-user@lucene.apache.org > Subject: Re: Creating search query > > That should work fine, assumin

Re: Creating search query

2008-01-24 Thread Erick Erickson
That should work fine, assuming that foo and bar are the untokenized fields and content is the tokenized content. Erick On Jan 24, 2008 1:18 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I have an index with some fields which are indexed and un_tokenized > (keywords) and one field which is indexed an

Creating search query

2008-01-24 Thread spring
Hi, I have an index with some fields which are indexed and un_tokenized (keywords) and one field which is indexed and tokenized (content). Now I want to create a Query-Object: TermQuery k1 = new TermQuery(new Term("foo", "some foo")); TermQuery k2 = new TermQuery(new Term("bar",