Re: Generating Query

2009-08-13 Thread AHMET ARSLAN
> 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

Re: Generating Query

2009-08-13 Thread AHMET ARSLAN
> 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

Re: Generating Query

2009-08-13 Thread bourne71
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? > >

Re: Generating Query

2009-08-13 Thread AHMET ARSLAN
> 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

Re: Generating Query

2009-08-13 Thread bourne71
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

Re: Generating Query

2009-08-12 Thread AHMET ARSLAN
> 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

Re: Generating Query

2009-08-12 Thread bourne71
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

Re: Generating Query

2009-08-12 Thread AHMET ARSLAN
> 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

Re: Generating Query

2009-08-12 Thread Adriano Crestani
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

Re: Generating Query for Multiple Clauses in a Single Field

2009-07-30 Thread blazingwolf7
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

Re: Generating Query for Multiple Clauses in a Single Field

2009-07-30 Thread AHMET ARSLAN
> 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

Re: Generating Query for Multiple Clauses in a Single Field

2009-07-30 Thread blazingwolf7
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

Re: Generating Query for Multiple Clauses in a Single Field

2009-07-30 Thread AHMET ARSLAN
: 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

Re: Generating Query for Multiple Clauses in a Single Field

2009-07-29 Thread blazingwolf7
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

Re: Generating Query for Multiple Clauses in a Single Field

2009-07-28 Thread AHMET ARSLAN
> 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