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
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

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-td2

Re: Generating Query

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

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
; 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

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
> 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

Generating Query

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

Re: Generating Query for Multiple Clauses in a Single Field

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

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
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

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
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,

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

Generating Query for Multiple Clauses in a Single Field

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

RE: need help for generating Query String

2005-10-18 Thread jibu mathew
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

Re: need help for generating Query String

2005-10-17 Thread Koji Sekiguchi
- 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

need help for generating Query String

2005-10-17 Thread jibu mathew
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