Re: potential query performance issue

2013-03-16 Thread Lin Ma
Thanks Lukai for the detailed reply, - "If you query is too long, it might not very efficient in query evaluation process. " -- how does Lucene query evaluation works? Is there any document to refer to? - "you can read out payload of the match term you have stored" -- what do you me

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: Lucene slow performance

2013-03-16 Thread Scott Smith
Thanks for the help. The reindex was done this morning and searches now take less than a second. I will make the change to the code. Cheers Scott -Original Message- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Friday, March 15, 2013 11:17 PM To: java-user@lucene.apache.org Subj

Re: Getting documents from suggestions

2013-03-16 Thread Jack Krupansky
I don't have time right now to debug your code right now, but make sure that the analysis is consistent between index and query. For example, "Apache" vs. "apache". -- Jack Krupansky -Original Message- From: Bratislav Stojanovic Sent: Saturday, March 16, 2013 7:29 AM To: java-user@lu

Re: Migrating SnowballAnalyzer to 4.1

2013-03-16 Thread Robert Muir
On Sat, Mar 16, 2013 at 12:57 AM, Steve Rowe wrote: > > Thanks for the explanation. > > I ran a lucene/benchmark alg comparing the two stemmers on trunk on my > Macbook Pro with Oracle Java 1.7.0_13, and it looks like the situation hasn't > changed much. > > The original-algorithm Porter stemmer

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