I got this nagging problem that I can't figure out in the source code of
Lucene.
In the file org/apache/lucene/queryParser/QueryParser.java,
there's a method called parse that returns a Query (see below):
public Query parse(String query) throws ParseException {
ReInit(new FastCharStream(n
Oh...ok. Where is this method created then, I can't seem to find it in
QueryParser?
Thanks.
--
Regards,
Eugene
Erik Hatcher wrote:
:)
Query(field) in this case is a method call.
Erik
-
To unsubscribe, e-mail: [E
Hi,
Is there any way to get the similarity scores for each document in the
index? I can iterate thru each doc in the index using the IndexReader
but not sure how to get the similarity score for that doc.
Thanks.
--
Regards,
Eugene
---
scores by calling Hits.score(). So you should search
at first to get Hits object.
regards,
Koji
-Original Message-
From: Eugene Ezekiel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 07, 2005 6:03 PM
To: java-user@lucene.apache.org
Subject: Similarity scores for all docs
Hi,
Is
Hi All,
I'm currently using the Default Similarity with the Boolean Query add
function to append clauses. The problem I face is this, given a query
, where = a term
it returns me a document which that has just ONE term in it say and
nothing else. Surprisingly, the hits score for this
Thanks Yonik for the reply. I got just a couple more questions,
1) Why does the explanantion print so many times?
2) Since my query is made up of multiple terms how do I know what term "x"
is referring to?
On 3/3/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
>
> I think Lucene in Action does a