for (int i = 0; i < hits.length(); i++) {
>Document hitDoc = hits.doc(i);
>}
>
>
> isearcher.close();
>directory.close();
>
> -Original Message-
> From: Garth Patil [mailto:garth
its.doc(i);
}
isearcher.close();
directory.close();
-Original Message-
From: Garth Patil [mailto:garthpa...@gmail.com]
Sent: Thursday, February 26, 2009 9:11 AM
To: java-user@lucene.apache.org
Subject: Re: Simple Java Object Search
Sure:
http://lucene.apach
Sure:
http://lucene.apache.org/java/2_4_0/gettingstarted.html
On Thu, Feb 26, 2009 at 9:06 AM, Ambati, Ravi BGI SF
wrote:
>
> All,
>
> I have a list of java objects and would like to index the contents of
> those objects. And would like to update the index whenever list of
> objects is changed.
>
All,
I have a list of java objects and would like to index the contents of
those objects. And would like to update the index whenever list of
objects is changed.
The big question is when users searches for something in index, I would
like to get all the objects that matached that search string.