Lucene!!!!

The query would be this "name:olson OR email:olson" if you indexed that information into separate fields. A common technique is to index all data you want queryable also into an aggregate field in which case the query could simply be "olson".

The full source code to Lucene in Action is at http://www.manning.com/hatcher2 - the ebook is available. The physical book is shipping from the printers as we speak (UPS tracking says I should have gotten my batch yesterday, but it'll be today it seems). http://www.lucenebook.com will go live within the week searching *inside* the book as well as a blog system I'm setting up.

        Erik

On Dec 22, 2004, at 10:27 PM, Tim Colson wrote:

So just assume for a moment that RAM is cheap and you decided to load 100K
objects into memory. Assume those objects were "Employees"... you can
imagine the fields would be the usual suspects. Assume each employee is
associated with a profile that is another object, which is composed of a
bunch of other data objects.


What would you use to find/select objects like "Name or email foo matches
*olson* " ?


Some possibilities:
http://jakarta.apache.org/commons/jxpath/

Some of the stuff inside Commons:
http://jakarta.apache.org/commons/collections/

Lucene indexes
http://jakarta.apache.org/lucene/docs/


Others?

Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to