> hm...try tat...but doesn't seems to be working for me though
Discarding lengthNorm didn't work for you. Very interesting. I am not sure but
I think inverse document frequency causing problem to you. Probably one of
query word (very common word) has high document frequency, and the docs having
> hm...try tat...but doesn't seems to be working for me though
Discarding lengthNorm didn't work for you. Very interesting. I am not sure but
I think inverse document frequency causing problem to you. Probably one of
query word (very common word) has high document frequency, and the docs having
hm...try tat...but doesn't seems to be working for me though
Ahmet Arslan wrote:
>
>> I am trying to boost results that have all the query
>> in it to increase its ranking. But both the query unfortunately does not
>> > seems to effect it
>
> Did you read last two messages on this thread?
>
>
> I am trying to boost results that have all the query
> in it to increase its ranking. But both the query unfortunately does not >
> seems to effect it
Did you read last two messages on this thread?
http://www.nabble.com/Generating-Query-for-Multiple-Clauses-in-a-Single-Field-td24694748.html
I am trying to boost results that have all the query in it to increase its
ranking. But both the query unfortunately does not seems to effect it
Ahmet Arslan wrote:
>
>> thanks for the suggestion, but unfortunately it does not
>> work.
>
> What are you trying to do? Both Adriano's and my query
> thanks for the suggestion, but unfortunately it does not
> work.
What are you trying to do? Both Adriano's and my query satisfies what you were
asking for. What didn't work?
-
To unsubscribe, e-mail: java-user-unsubsc
thanks for the suggestion, but unfortunately it does not work ><
Ahmet Arslan wrote:
>
>> I am trying to build a query that looks like the
>> following:
>> url:(+news +politics)^1.5 content:(+news +politics)^2.0
>>
>> But I can't seems to find any reference to it. I try
>> hardcoding it like t
> I am trying to build a query that looks like the
> following:
> url:(+news +politics)^1.5 content:(+news +politics)^2.0
>
> But I can't seems to find any reference to it. I try
> hardcoding it like the
> following:
> BooleanQuery query = new BooleanQuery();
> query.add(new TermQuery(new Term(fie
Try this:
BooleanQuery b1 = new BooleanQuery();
b1.add(new TermQuery(new Term("url", "news")),
BooleanClause.Occur.MUST);
b1.add(new TermQuery(new Term("url", "politics")),
BooleanClause.Occur.MUST);
b1.setBoost(1.5f);
BooleanQuery b2 = new BooleanQuery();
b2.add(n
Thanks a lotit is truly cause by the length normalization there. I follow
your suggestion and change it to 1.0f. Now it works properly.
Thanks again
Ahmet Arslan wrote:
>
>
>> yah, before this i used default lucene...but i dont know
>> what end up wrong...some results with only single wo
> yah, before this i used default lucene...but i dont know
> what end up wrong...some results with only single word matching when to
> the top of the results.
Hmm. Interesting. It seems that length normalization causing this. Very short
documents with only single word matching getting high scor
yah, before this i used default lucene...but i dont know what end up
wrong...some results with only single word matching when to the top of the
results.
This i assumed is due to the score of the result being to high. Tat's why i
am trying to add additional boost
Ahmet Arslan wrote:
>
>
> : I
: I am trying to create a query, that first will return a set
: of results, then
: it will give a boost to the results that have all the
: keyword entered by the user.
If I understand you correctly: User will enter multiple keywords. Lets say a b
c d. And you want documents - that contains/have
I am trying to create a query, that first will return a set of results, then
it will give a boost to the results that have all the keyword entered by the
user.
Ahmet Arslan wrote:
>
>
>> generate a query like the following:
>> title:(+chemistry +"national curriculum")
>
> I didn't understand
> generate a query like the following:
> title:(+chemistry +"national curriculum")
I didn't understand what exactly you are asking but the query string is already
well-formatted. You can pass this string directly to the parse method of
QueryParser. The following four examples yields the same Qu
15 matches
Mail list logo