HOWTO USE SORT on QUERY PARSER :)

2004-07-14 Thread Karthik N S
Hey Guys' Apologies... Gee th's so simple u have explained me Thx a lot. Please correct me If I am wrong 1) So U tell me that On Field type FIELD_CONTENTS , the relevant hits can be sorted wrt Field type FIELD_DATE [ Where FIELD_DATE FIELD_CONTENTS are Field Typos for

Re: Why is Field.java final?

2004-07-14 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 13 July 2004 18:12, Doug Cutting wrote: John Wang wrote: On the same thought, how about the org.apache.lucene.analysis.Token class. Can we make it non-final? Sure, if you make a case for why it should be non-final. How about the

Re: Lucene Search has poor cpu utilization on a 4-CPU machine

2004-07-14 Thread Kevin A. Burton
Doug Cutting wrote: Aviran wrote: I changed the Lucene 1.4 final source code and yes this is the source version I changed. Note that this patch won't produce the a speedup on earlier releases, since their was another multi-thread bottleneck higher up the stack that was only recently removed,

Search Result + Highlighter

2004-07-14 Thread Karthik N S
Hi Guys Some week 's back had reported a problem regarding Search on Indexed file using Highlighter The Highlighter used to Dipslay [Pad] or [0] between words ( The Field type is Field.Text type, stores the HTML summary ) [ I am using a CustomAnalyzer which is similar to

RE: Problems indexing Japanese with CJKAnalyzer

2004-07-14 Thread Jon Schuster
Hi all, Thanks for the help on indexing Japanese documents. I eventually got things working, and here's an update so that other folks might have an easier time in similar situations. The problem I had was indeed with the encoding, but it was more than just the encoding on the initial creation of

Scoring without normalization!

2004-07-14 Thread Jones G
How do I remove document normalization from scoring in Lucene? I just want to stick to TF IDF. Thanks.

ArrayIndexOutOfBoundsException if stopword on left of bool clause w/ StandardAnalyzer

2004-07-14 Thread Claude Devarenne
Hi, A user mistyped their search terms and entered a query that looked like this: the AND title:bla I am using lucene 1.4 rc3. My web app, which is using a StandardAnalyzer, got an ArrayIndexOutOfBoundsException (stack trace below). I can reproduce this with the lucene demo (both the jsp

RE: Scoring without normalization!

2004-07-14 Thread Anson Lau
If you don't mind hacking the source: In Hits.java In method getMoreDocs() // Comment out the following //float scoreNorm = 1.0f; //if (length 0 scoreDocs[0].score 1.0f) { // scoreNorm = 1.0f / scoreDocs[0].score; //} // And just set scoreNorm to 1. int

Re: RE: Scoring without normalization!

2004-07-14 Thread Jones G
Thanks! Just what I wanted. On Thu, 15 Jul 2004 Anson Lau wrote : If you don't mind hacking the source: In Hits.java In method getMoreDocs() // Comment out the following //float scoreNorm = 1.0f; //if (length 0 scoreDocs[0].score 1.0f) { // scoreNorm = 1.0f /

Searching against Database

2004-07-14 Thread Hetan Shah
Hello All, I have got all the answers from this fantastic mailing list. I have another question ;) What is the best way (Best Practices) to integrate Lucene with live database, Oracle to be more specific. Any pointers are really very much appreciated. thanks guys. -H

One Field!

2004-07-14 Thread Jones G
I have an index with multiple fields. Right now I am using MultiFieldQueryParser to search the fields. This means that if the same term occurs in multiple fields, it will be weighed accordingly. Is there any way to treat all the fields in question as one field and score the document accordingly