Re: Filtering results on a Field

2007-02-28 Thread Ismail Siddiqui
throw new RuntimeException( "Unable to make any sense of the query.", e ); } and use bQueryAll in your query. And please be wy more elegant than the code I wrote . Erick On 2/28/07, Ismail Siddiqui <[EMAIL PROTECTED]> wrote: > > Hey guys, > I want to filter a res

Filtering results on a Field

2007-02-28 Thread Ismail Siddiqui
Hey guys, I want to filter a result set on a particular field..I have code like this try { PhraseQuery textQuery = new PhraseQuery(); PhraseQuery titleQuery = new PhraseQuery(); PhraseQuery catQuery = new PhraseQuery(); textQuery.setSlop( 20 );

Re: problem deleting documents

2006-10-15 Thread Ismail Siddiqui
thanks, it worked On 10/15/06, Doron Cohen <[EMAIL PROTECTED]> wrote: > now pk is primary key which i am storing but not indexing it.. > doc.add(new Field("pk", message.getId().toString(),Field.Store.YES, > Field.Index.NO)); You would need to index it for this to work.

problem deleting documents

2006-10-14 Thread Ismail Siddiqui
hi guys i am having problem deleting documents .. apparently its not doin it.. here is the code snippet public void delete(final BoardMessage message) { try{ IndexReader fsReader; if (index.exists()) { fsReader =IndexReader.open(index);

Re: TermQuery and PhraseQuery..problem with word with space

2006-10-09 Thread Ismail Siddiqui
in fav_stores i see "Banana Republic" and "Ann Taylor" there .. and i am searching it with the capitals. On 10/9/06, Erick Erickson <[EMAIL PROTECTED]> wrote: OK, when you look in the "fav_stores" field in Luke, what do you see? And, are you searching on "Banana Republic" with the capitals? I

Re: TermQuery and PhraseQuery..problem with word with space

2006-10-09 Thread Ismail Siddiqui
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(p

TermQuery and PhraseQuery..problem with word with space

2006-10-08 Thread Ismail Siddiqui
Hi All I am trying to index a field which has more than one word with space e.g. "My Word" i am indexng it UN_TOKENIZED .. but when i use TermQuery to query "My Word" its not yielding any result.. if I index it TOKENIZED and use phrase query.. then use phrase query then it yields result on all 3

BooleanQuery

2006-09-29 Thread Ismail Siddiqui
Hi, I have two pharase queries messageQuery = new PhraseQuery(); titleQuery = new PhraseQuery(); messageQuery.setSlop(3); titleQuery.setSlop(1); for (int i=0; i

writer.minMergeDocs in lucene 2.0

2006-09-21 Thread Ismail Siddiqui
writer.setMinMergeDocs().. can any one help.. how can i increase minimum docucment merge size. thanks all Ismail Siddiqui