java-user@lucene.apache.org
[Top] [All Lists]

RE: How to implement AJAX search~Lucene Search part?

Subject: RE: How to implement AJAX search~Lucene Search part?
From: "Anna Putnam"
Date: Fri, 8 Jun 2007 00:12:56 -0400
Check out
http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosugge
st_autocomplete.html

It takes an XML response as input (which could be backed by lucene).  

I have implemented this and it works pretty fast, although I do have a
small dataset.

-Anna

-----Original Message-----
From: Chris Lu [mailto:chris.lu@xxxxxxxxx] 
Sent: Thursday, June 07, 2007 6:32 PM
To: java-user@xxxxxxxxxxxxxxxxx
Subject: How to implement AJAX search~Lucene Search part?

Hi,

I would like to implement an AJAX search. Basically when user types in
several characters,  I will try to search the Lucene index and found
all possible matching items.

Seems I need to use wildcard query like "test*" to matching anything.
Is this the only way to do it? It doesn't seems quite efficient,
especially when you just typed in the first character.

I guess the "good" way is to go through the terms, and return as soon
as, for example, 10 terms are found.

I am wondering is there anything like this already built?

-- 
Chris Lu
-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes:
http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in
_3_minutes

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>