highlighter highlights another term

2007-04-15 Thread Leos Literak
Hi, I have following code: query = query.rewrite(indexReader); searcher = new IndexSearcher(indexReader); hits = searcher.search(query); String text = doc.get("TITLE") + " " + doc.get("CONTENT"); tokenStream = analyzer.tokenStream("CONTENT", new StringReader(text)); fragment = highlighter.getBes

Re: highlighter highlights another term

2007-04-16 Thread Leos Literak
markharw00d wrote: See the Junit test example for field-sensitive highlighting. If you pass a fieldname to the QueryScorer constructor it only considers query terms for that field - the default without is all fields Thanks for hint, it works :-) --

how to forbid prefetching found Documents?

2006-01-07 Thread Leos Literak
Hello, I found in Lucenebook, that searching always reads first first 100 documents. I take a look to java source code and found that in Hits.java. I cannot find any easy way, how to forbid this behaviour. motivation: my page size is 30. It is useless to read 100 documents, when I will display o

Re: how to forbid prefetching found Documents?

2006-01-07 Thread Leos Literak
methods that return TopDocs or TopFieldDocs. -Yonik On 1/7/06, Leos Literak <[EMAIL PROTECTED]> wrote: Hello, I found in Lucenebook, that searching always reads first first 100 documents. I take a look to java source code and found that in Hits.java. I cannot find any easy way, how to

Re: how to forbid prefetching found Documents?

2006-01-09 Thread Leos Literak
Yonik Seeley wrote: > On 1/7/06, Leos Literak <[EMAIL PROTECTED]> wrote: > >>Yonik, I want to display 120th. up to 150th. document >>in Hits. Do you mean that Hits does not contain id >>of all relevant documents? > > > Correct, it does not. The firs

Re: Lucene job

2006-03-20 Thread Leos Literak
Erik Hatcher wrote: > So maybe we need a wiki page for the "Tao of Lucene"?! ;) that would be great :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

highlighter to use with 1.4.3?

2005-07-05 Thread Leos Literak
Hi, I'd like to play around with highlighter. I downloaded one from sandbox, but it doesn't compile against lucene stable 1.4.3. highlight/TokenSources.java:19: cannot find symbol [javac] symbol : class TermVectorOffsetInfo Is there some package that can be used with lucene 1.4.3 distribut

lucene logo

2005-07-06 Thread Leos Literak
Hi, I'd like to put lucene logo plus link to my search page, but logo on Lucene website is too big. Does any one has some smaller one? Max 100 pixels wide? Thanks Leos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

no results for date field

2005-07-06 Thread Leos Literak
Hi, I've added to index date field: public Field setCreated(Date date) { Field field = Field.Keyword(CREATED, date); document.add(field); return field; } Now I try to search according to documentation: created:[20040101 TO 20050707] But there is no hit. Using l

Re: lucene logo

2005-07-06 Thread Leos Literak
Erik Hatcher wrote: There are a few different sizes here: http://svn.apache.org/repos/asf/lucene/java/trunk/docs/images/ Thanks, that is, what I needed. See http://www.abclinuxu.cz/Search?query= Could you please add www.abclinuxu.cz to Powered by page? Thanks Leos -

Re: no results for date field

2005-07-07 Thread Leos Literak
Erik Hatcher napsal(a): QueryParser attempts to parse the from and to strings as simple date formats with the default locale. You would use something like "created:[01/01/04 TO 07/05/05]". Please read up on the issues that the default date handling poses though. Simply indexing with

non-lexical comparisons

2005-07-07 Thread Leos Literak
I know the answear, but just for curiosity: have you guys ever thought about non-lexical comparison support? For example I started to index number of replies in discussion, so I can find questions without answear, with one reply, two comments etc. But I cannot simply express that I want to find q