FAQ
Hello everyone,

Whenever I search a word in my web application, I search in some default
fields,
e.g. I search the word "hello", I generate these queries :

title:hello
headlines:hello
summary:hello
content:hello

Which I add in a BooleanQuery (BooleanClause.Occur.SHOULD)

What I want to achieve is getting the score of the query that matches the
word entered, and return that score.
(e.g. hello was found in the summary, return the score of summary:hello,
and not the score of "title:hello headlines:hello summary:hello
content:hello")
(it should first look into my title field , then headlines , then summary,
etc.)

The problem is that my score is pretty low (and getting lower if I add more
fields in which to search)
and I tought that it is more obvious to return the best score of the best
query in my BooleanQuery.

I hope I was clear and that anyone here can help me in achieving this,
Thank u for any support.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMay 6, '07 at 9:04p
activeMay 6, '07 at 9:04p
posts1
users1
websitelucene.apache.org

1 user in discussion

Thomas Thomas: 1 post

People

Translate

site design / logo © 2022 Grokbase