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 );
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 G.
Erick
On 2/28/07, Ismail Siddiqui [EMAIL PROTECTED] wrote:
Hey guys,
I want to filter a result set on a particular field..I have code like
this
try
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.
From
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);
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();
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? If so, and
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
there is no add function in BooleanQuery class with
these 3 arguments in lucene 2.x
can some one please tell me how to combine two queries in BooleanQuery in
lucene 2
thanks
Ismail Siddiqui
m
writer.setMinMergeDocs()..
can any one help.. how can i increase minimum docucment merge size.
thanks all
Ismail Siddiqui