Re: Getting documents from suggestions

2013-03-22 Thread Bratislav Stojanovic
OK, I've played with all this solutions and basically only one gave me satisfying results. Using build() with TermFreqPayload argument gave me horrible performance, because it takes more than 5 mins to iterate through all Terms in the index and to filter them based on the doc id. Not sure if this n

Re: Getting documents from suggestions

2013-03-16 Thread Michael McCandless
On Sat, Mar 16, 2013 at 7:47 AM, Bratislav Stojanovic wrote: > Hey Mike, > > Is this what I should be looking at? > https://builds.apache.org/job/Lucene-Artifacts-trunk/javadoc/suggest/org/apache/lucene/search/suggest/analyzing/package-summary.html > > Not sure how to call build(), i.e. what to pa

Re: Getting documents from suggestions

2013-03-16 Thread Jack Krupansky
013 7:29 AM To: java-user@lucene.apache.org Subject: Re: Getting documents from suggestions Hey Jack, I've tried MoreLikeTHis, but it always returns me 0 hits. Here's the code, it's very simple : // test2 Index lucene = null; try { lucene = new Index(); MoreLikeThis mlt = new More

Re: Getting documents from suggestions

2013-03-16 Thread Bratislav Stojanovic
Hey Mike, Is this what I should be looking at? https://builds.apache.org/job/Lucene-Artifacts-trunk/javadoc/suggest/org/apache/lucene/search/suggest/analyzing/package-summary.html Not sure how to call build(), i.e. what to pass as a parameter...Any examples? Where to specify my payload (which is

Re: Getting documents from suggestions

2013-03-16 Thread Bratislav Stojanovic
Hey Jack, I've tried MoreLikeTHis, but it always returns me 0 hits. Here's the code, it's very simple : // test2 Index lucene = null; try { lucene = new Index(); MoreLikeThis mlt = new MoreLikeThis(lucene.reader); mlt.setAnalyzer(lucene.analyzer); Reader target = new StringReader("apache"); Quer

Re: Getting documents from suggestions

2013-03-15 Thread Bratislav Stojanovic
gestion is X, do you simply want to know a few of the > >> documents which have the highest term frequency for X? > >> > >> Or is there some other term-oriented metric you might propose? > >> > >> > >> -- Jack Krupansky > >> > >> -Or

Re: Getting documents from suggestions

2013-03-14 Thread Steve Rowe
y want to know a few of the >> documents which have the highest term frequency for X? >> >> Or is there some other term-oriented metric you might propose? >> >> >> -- Jack Krupansky >> >> -Original Message----- From: Bratislav Stojanovic

Re: Getting documents from suggestions

2013-03-14 Thread Bratislav Stojanovic
6:14 PM > To: java-user@lucene.apache.org > Subject: Re: Getting documents from suggestions > > > Wow that was fast :) > > I have implemented a simple search box with auto-suggestions, so whenever > user > types in something, ajax call is fired to the SuggestServlet

Re: Getting documents from suggestions

2013-03-14 Thread Jack Krupansky
Sent: Thursday, March 14, 2013 6:14 PM To: java-user@lucene.apache.org Subject: Re: Getting documents from suggestions Wow that was fast :) I have implemented a simple search box with auto-suggestions, so whenever user types in something, ajax call is fired to the SuggestServlet and in return 10 sugges

Re: Getting documents from suggestions

2013-03-14 Thread Bratislav Stojanovic
Wow that was fast :) I have implemented a simple search box with auto-suggestions, so whenever user types in something, ajax call is fired to the SuggestServlet and in return 10 suggestions are shown. It's working fine with the SpellChecker class, but I only get array of Strings. What I want is t

Re: Getting documents from suggestions

2013-03-14 Thread Michael McCandless
If you are using AnalyzingSuggester or FuzzySuggester than you can use its new payloads feature to store an arbitrary byte[] with each suggestion: https://issues.apache.org/jira/browse/LUCENE-4820 But this won't help if you're using spell checker ... Mike McCandless http://blog.mikemccandle

Re: Getting documents from suggestions

2013-03-14 Thread Jack Krupansky
Could you give us some examples of what you expect? I mean, how is your suggested set of documents any different from simply executing a query with the list of suggested terms (using q.op=OR)? Or, maybe you want something like MoreLikeThis? -- Jack Krupansky -Original Message- From: