Re: Query scoring

2009-05-03 Thread liat oren
Please see in a new thread - Boosting query - debuging Thanks! 2009/5/2 Chris Hostetter > > : Sorry, you can see the script below: > > uh ... ok. so now you've posted a bunch of your code, but you still > haven't addresed the root of what Erick and I were both getting at... > > : > Erick means

Re: Query scoring

2009-05-01 Thread Chris Hostetter
: Sorry, you can see the script below: uh ... ok. so now you've posted a bunch of your code, but you still haven't addresed the root of what Erick and I were both getting at... : > Erick means we need to see *all* of your code (inlcuding how you get the : > score and the Explanation you are pr

Re: Query scoring

2009-04-21 Thread liat oren
Sorry, you can see the script below: Thanks // Index Method **/ public void index(DoubleMap doubleMap, String dirPath, String originalPath) throws IOException { File f = new File(dirPath); IndexWriter writer = null; if(f.exists(

Re: Query scoring

2009-04-20 Thread Chris Hostetter
Erick means we need to see *all* of your code (inlcuding how you get the score and the Explanation you are printing) to understand why they don't match. All you've shown is the output of your program and the generation of a Hits object. -Hoss --

Re: Query scoring

2009-04-18 Thread liat oren
Hi, You can see the output below: 1.0 * (this is the score) 4817674 5664274 6361333 (query) 4817674 5664274 6361333 (doc 0) 0.0 = (NON-MATCH) product of: 0.0 = (NON-MATCH) sum of: 0.0 = coord(0/3) 0.13811989 * 4817674

Re: Query scoring

2009-04-17 Thread Erick Erickson
Well, let's see the results of toString and/or Explain *from your code*. Otherwise, you haven't given us much to go on. Best Erick On Fri, Apr 17, 2009 at 1:07 AM, liat oren wrote: > Thanks for the answer. > > In Luke, I used the WhiteSpaceAnalyzer as well. The scores AND the explain > method w

Re: Query scoring

2009-04-16 Thread liat oren
Thanks for the answer. In Luke, I used the WhiteSpaceAnalyzer as well. The scores AND the explain method worked perfectly. In my application, I checked for the query - it contains the numbers splitted in different term queries so it prepares it well. Also the scoring is good. However the explain

Re: Query scoring

2009-04-16 Thread Erick Erickson
Hmmm, try query.toString() and/or query.explain(). Also, try using Luke to see what is actually in the document. BTW, what analyzer did you use in Luke? Luke also has an explain (tab?) that will show you what Luke does, which may be useful. The default operator should be "OR", but looking at the

Re: Query scoring

2009-04-16 Thread liat oren
I wanted to add also that I index it tokenized and that when I use Luke to do this search, it gives the correct results. Should I run the query differntly than the way I do? 2009/4/16 liat oren > Hi, > > I try to understand why the following query gives the scoring below: > > document 1 : a b

Query scoring

2009-04-16 Thread liat oren
Hi, I try to understand why the following query gives the scoring below: document 1 : a b c document 2 : g k a h u c 0.0 = (NON-MATCH) product of: 0.0 = (NON-MATCH) sum of: 0.0 = coord(0/3) 0.06155877 The query code is: IndexSearcher searcher = new IndexSearcher(path); Analyzer analy

Re: span query scoring vs boolean query scoring

2006-03-27 Thread Doug Cutting
Vincent Le Maout wrote: I am missing something ? Is it intented or is it a bug ? Looks like a bug. Can you please submit a bug report, and, ideally, attach a patch? Thanks, Doug - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: span query scoring vs boolean query scoring

2006-03-27 Thread Doug Cutting
Vincent Le Maout wrote: I am missing something ? Is it intented or is it a bug ? Looks like a bug. Can you submit a patch? Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: span query scoring vs boolean query scoring

2006-03-24 Thread Chris Hostetter
: *public* SpanWeight(SpanQuery query, Searcher searcher) : *throws* IOException { : *this*.similarity = query.getSimilarity(searcher); : *this*.query = query; : *this*.terms = query.getTerms(); : : idf = *this*.query.getSimilarity(searcher).idf(terms, searcher); : } : : lack

span query scoring vs boolean query scoring

2006-03-24 Thread Vincent Le Maout
Hi everybody, it's been a while since I try to figure out the difference between the scoring of span and boolean queries with little success. All stems from the observation that the boost of SpanTermQuery as leaves of the query tree does not seem to have much influence on the resulting scores o

Re: Query Scoring

2006-01-02 Thread Harini Raghavan
Thank you Chris. That seems like a good suggestion. I will try to pass a different Query object to the Highlighter api that the one used for searching. I plan to break down the HTML document and store the title/sub title/content in different fields of the index. So if I create a new query com

Re: Query Scoring

2006-01-01 Thread Chris Hostetter
: My requirement is to show the relevant fragments of the news article for : each company along with the search results. But the highlighter api : sometimes picks up the fragments which are not so relevant to the news : article/company. I would like to know if there is anyway that I can : modify t

Re: Query Scoring

2006-01-01 Thread Harini Raghavan
;cost saving" Content:"cost savings" Content:outsource Content:outsources Content:downsize Content:downsizes Content:restructuring Content:restructure) I do not quite understand how the query scoring actually works & how Inverse Document Frequency(IDF) calculations are useful? Can som

Re: Query Scoring

2005-12-31 Thread markharw00d
yId:30 CompanyId:40) +FilingDate:[20041201 TO 20051201] +(Content:"cost saving" Content:"cost savings" Content:outsource Content:outsources Content:downsize Content:downsizes Content:restructuring Content:restructure) I do not quite understand how the query scoring actually work

Re: Query Scoring

2005-12-31 Thread Erik Hatcher
urce Content:outsources Content:downsize Content:downsizes Content:restructuring Content:restructure) I do not quite understand how the query scoring actually works & how Inverse Document Frequency(IDF) calculations are useful? Can someone shed some light on this using th

Query Scoring

2005-12-30 Thread Harini Raghavan
e understand how the query scoring actually works & how Inverse Document Frequency(IDF) calculations are useful? Can someone shed some light on this using the given query as an example? Thanks, Harini - To unsubscribe, e-mai