Re: Re: Lucene pagination

2011-11-20 Thread janwen
Lucene pagination really need to import.There is no search app that do not need to pagination function. 2011-11-21 janwen | China website : http://www.qianpin.com/ 发件人: Michael McCandless 发送时间: 2011-11-15 21:39 主 题: Re: Lucene pagination 收件人: java-user@lucene.apache.org Also, in 3.5.0

Re: Re: Lucene pagination

2011-11-20 Thread janwen
Waiting for the new API3.5 2011-11-21 janwen | China website : http://www.qianpin.com/ 发件人: Michael McCandless 发送时间: 2011-11-15 21:39 主 题: Re: Lucene pagination 收件人: java-user@lucene.apache.org Also, in 3.5.0 there is a new API in IndexSearcher: searchAfter. It enables you to efficie

Filtering search results

2011-11-20 Thread Felipe Carvalho
Hello, I'm working on a people finder app over an index built of Person documents. Among other attributes (name, gender, phone, ...) I have a hiringType attribute, which possible values are EMPLOYEE and CONSULTANT. When I run a "name" search over these documents, I need to render two lists: emp

lucene hits vs topdocs

2011-11-20 Thread Gwyn Carwardine
Hi I last used dotLucene 143 and now I'm wanting to upgrade to 294. What I've discovered is that there are quite a few changes.. One of them is in respect of Search. Previously one supplied a query and received a number of hits. I didn't have an issue with preservation of state so was quite happ

RE: lucene highlighter

2011-11-20 Thread Uwe Schindler
Hi > Thanks for your useful comments: > > here I could do what I want with the highlighter which work with lucene 3: > > QueryScorer scorer = new QueryScorer(query, reader, "contents"); > Highlighter highlighter = new Highlighter(scorer); > > String fragment = highlighter.g

RE: lucene highlighter

2011-11-20 Thread starz10de
Hi, Thanks for your useful comments: here I could do what I want with the highlighter which work with lucene 3: QueryScorer scorer = new QueryScorer(query, reader, "contents"); Highlighter highlighter = new Highlighter(scorer); String fragment = highlighter.get

RE: lucene highlighter

2011-11-20 Thread Uwe Schindler
Hi, You should review the new API of Lucene 3.0, SpanScorer was replaced by something else. The CHANGES.txt of the contrib package may give you some hints. Its long time ago that we changed this api (Lucene 3.0 is also "ancient"). Contrib-Highlighter may break backwards compatibility even with

RE: lucene highlighter

2011-11-20 Thread starz10de
Hi Uwe, Thanks for your answer. I am using now lucene-highlighter-3.0.3 but the problem I have this error: “SpanScorer can’t be resolved as a type” > SpanScorer scorer = new SpanScorer(query, fieldName, new > CachingTokenFilter(stream)); I checked the class path and there were no old versi

RE: lucene highlighter

2011-11-20 Thread Uwe Schindler
Hi, it looks like your classpath is containing also very old Lucene versions together with the new Lucene JAR file. Alternatively it may also be the case that contrib-highlighter.jar, contrib-memory.jar and lucene-core.jar are not from the same Lucene version. The method next(Token) is only ava

lucene highlighter

2011-11-20 Thread starz10de
Hi, I have a problem with lucene highlighter. I couldn’t make it run. The compilation is without error but when I run it I got this error “Exception in thread "main" java.lang.NoSuchMethodError:org.apache.lucene.analysis.TokenStream.next(Lorg/apache/lucene/analysis/Token;)Lorg/apache/lucene/analys

RE: Compound file don't work with lucene 3.3 or 3.4

2011-11-20 Thread Uwe Schindler
Hi, Lucene only uses CFS for very small segments, that don't exceed a specific percentage of the index size. See the method LogMergePolicy.setNoCFSRatio [http://lucene.apache.org/java/3_4_0/api/all/org/apache/lucene/index/LogMerg ePolicy.html#setNoCFSRatio(double)]. The default is 10%, every segm