I would guess that one of your assumptions is wrong... The assumptions to check are:
At indexing: - lpf.getLuceneFieldName() == "fav_stores" - pa.getPersonProfileChoice().getChoice() == "Banana Republic" At search: - the query is created like this: new TermQuery(new Term("fav_stores","Banana Republic")) - the searcher is opened after closing the writes that added that doc. Best to check this by writing a tiny stand-alone program that demonstrates this behavior. "Ismail Siddiqui" <[EMAIL PROTECTED]> wrote on 09/10/2006 08:59:39: > I am using StandardAnalyzer while indexing the field.. > I am also a creatign a field called full_text in which i am adding all > these individual fields as TOKENIZED. > > > here is the code > > while(choiceIt.hasNext()){ > PersonProfileAnswer pa=(PersonProfileAnswer)choiceIt.next(); > if(pa.getPersonProfileChoice()!=null) > { > doc.add(new Field(FULL_TEXT, > pa.getPersonProfileChoice().getChoice(),Field.Store.NO,Field.Index.TOKENIZED > )); > LuceneProfileQuestion lpf=this.getLuceneProfileQuestion( > pa.getPersonProfileChoice().getPersonProfileQuestion().getId()); > > doc.add(new Field(lpf.getLuceneFieldName(), > pa.getPersonProfileChoice().getChoice(),Field.Store.NO, > Field.Index.UN_TOKENIZED)); > > } > } > > when i use luke i can see the term is there.. e.g. for a lucence field > called "fav_stores" UN_TOKENIZED terms "Ann Taylor" and "Banana Republic" > are there.. > > > > If i make a search on full_text.. and type "banana" or "republic" or > "banana republic" i get the doucment as result.. In my java class i am > using phrasequery for full_text and termquery for each individual filed.. > > e.g. TermQuery subjectQuery=new TermQuery(new Term("fav_stores",favStores)); > > > In luke i do not see any option to select query type but when I make search > on "fav_stores" with term "Banana Republic" there is no result. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]