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
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 );
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.
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);
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
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
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
Hi,
I have two pharase queries
messageQuery = new PhraseQuery();
titleQuery = new PhraseQuery();
messageQuery.setSlop(3);
titleQuery.setSlop(1);
for (int i=0; i
writer.setMinMergeDocs()..
can any one help.. how can i increase minimum docucment merge size.
thanks all
Ismail Siddiqui