I'd add you probably don't want just the query logs, people may search
for things that aren't in the index, too. Your call as to whether
that is useful or not. Also, have a look at the TermsComponent, as it
will tell you the doc freq for terms.
On Dec 19, 2008, at 10:08 AM, roberto wrote:
Erick,
Thanks this sounds good, i'll try.
Mike,
Could you give more details about query logs?
Thanks
On Fri, Dec 19, 2008 at 12:02 AM, Mike Klaas <mike.kl...@gmail.com>
wrote:
On 18-Dec-08, at 10:53 AM, roberto wrote:
Erick,
Thanks for the answer, let me clarify the thing, we would like to
have a
combobox with the terms to guide the user in the search i mean, if
a have
thousands of documents and want to tell them how many documents in
the
base
have the particular word, how can i do that?
Sounds like you want query autocomplete. The best way to do this
(including if you want the box filled with some queries), is to use
the
query logs, not the documents.
-Mike
--
"Without love, we are birds with broken wings."
Morrie
--------------------------
Grant Ingersoll
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ