> 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
ad last two messages on this thread?
>
> http://www.nabble.com/Generating-Query-for-Multiple-Clauses-in-a-Single-Field-td24694748.html
>
>
> And do not forget to use your new similarity class in both indexing and
> searching. Inde
> 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-td2
il: java-user-h...@lucene.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/Generating-Query-tp24931880p24951573.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To
> 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
; b2.add(t4, BooleanClause.Occur.MUST);
> b2.setBoost(2.0f);
>
> BooleanQuery finalQuery = new BooleanQuery();
> finalQuery.add(b1,BooleanClause.Occur.SHOULD);
> finalQuery.add(b2,BooleanClause.Occur.SHOULD);
>
>
>
>
> ---------
> To unsubscrib
> 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
> BooleanClause.Occur.SHOULD);
>
> But with this, the query doesn't seems to provide any response or effect.
> By
> right its suppose to boost the field of the page that contain both of the
> word in it.
>
> Can anyone advise me on how to create this type of query? Than
View this message in context:
http://www.nabble.com/Generating-Query-tp24931880p24931880.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apach
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/Generating-Query-for-Multiple-Clauses-in-a-Single-Field-tp24694748p
> 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
s in a
> document, the more relevant that document is to the query.
>
>
>
>
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>
>
--
View t
: 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
according to descriptions in here, and pass it to
> the parse method of QueryParser.
>
>
>
>
>
> -----
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands,
> 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
h this?
Thanks
--
View this message in context:
http://www.nabble.com/Generating-Query-for-Multiple-Clauses-in-a-Single-Field-tp24694748p24694748.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To
Thanks Koji. It worked for me.
jibu
-Original Message-
From: Koji Sekiguchi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 18, 2005 10:51 AM
To: java-user@lucene.apache.org
Subject: Re: need help for generating Query String
Hi,
> In a program I have indexed 10 files. When I d
-
From: "jibu mathew" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, October 18, 2005 1:45 PM
Subject: need help for generating Query String
Hi all,
I need urgent help for the following issues.
What is the query string to retrieve all the documents indexed
(something similar to *.*)?
In
Hi all,
I need urgent help for the following issues.
What is the query string to retrieve all the documents indexed
(something similar to *.*)?
In a program I have indexed 10 files. When I do a search using the query
"contents:java", it will return 2 documents. But when I give
"-contents:java
20 matches
Mail list logo