Re: Score field NaN in the expanded Results

2019-03-13 Thread Raveendra Yerraguntla
Found the issue.I am using solr 5.4.0 version. in ExpandComponent - the TermFieldCollector is created with the TotalDefaultScores and TotalDefaultMaxScores were passed as false. This limits any field sorting (other than score) makes the score to be returned as NaN. By passing either or both of

Re: Score relevancy

2018-10-25 Thread Walter Underwood
Use a bf of 10 * RANK. That will give the same ordering as dividing the score by 10 and adding RANK. There are problems with additive boosts, so I strongly recommend looking at the “boost” parameter, which is a multiplicative boost. That is more stable over a wide range of score values. wunder

Re: Score relevancy

2018-10-25 Thread Amjad Khan
We use ranking below 100 and yes it is float. > On Oct 25, 2018, at 1:08 PM, David Hastings > wrote: > > is this RANK value stored as a float/integer? and whats the range? one > idea is you could use edismax and have a really possible long boost query: > RANK:[1 TO 2]^10 OR RANK:[3 TO 4]^9 >

Re: Score relevancy

2018-10-25 Thread David Hastings
is this RANK value stored as a float/integer? and whats the range? one idea is you could use edismax and have a really possible long boost query: RANK:[1 TO 2]^10 OR RANK:[3 TO 4]^9 but this isnt actually a great idea and gets sloppy fast. you could apply boost at index time, or a function query

Re: Score certain documents higher based on a weight field

2018-04-10 Thread Emir Arnautović
Hi, In case you are using (e)dismax query parser, you can use bf (additive) or boost (multiplier) to boost results. You have field function to access the field value (can also just use field name in most places. HTH, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elas

Re: Score different for different documents containing same value

2018-03-26 Thread Erick Erickson
add debug=true to the query and you'll see exactly how the scores are calculated, that should give you a clue as to what's going on. In particular look at the parsed query and be sure that your query is parsed as you expect. It should be given you you specify the query, but as a sanity check. Is

Re: Score higher if multiple terms match

2017-06-08 Thread David Hastings
Agreed, you need to show the debug query info from your original query: My syntax is something like this: >> >>> >> http://localhost:8983/solr/sales/select?indent=on&wt=json&; >> >>> >> fl=*,score&q=name:tv >> >>> >> promotion and could probably help you get the results you want On Thu, Jun 8,

Re: Score higher if multiple terms match

2017-06-08 Thread Erick Erickson
bq: I hope that clears the confusion. Nope, doesn't clear it up at all. It's not clear which query you're talking about at least to me. If you're searching for name:tv AND name:promotion and getting back a document that has only "tv" in the name field that's simply wrong and you need to find

Re: Score higher if multiple terms match

2017-06-08 Thread OTH
Hi - Sorry it was very late at night for me and I think I didn't pick my wordings right. bq: it is indeed returning documents with only either one of the two query terms What I meant was: Initially, I thought it was only returning documents which contained both 'tv' and 'promotion'. Then I realiz

Re: Score higher if multiple terms match

2017-06-07 Thread Erick Erickson
bq: it is indeed returning documents with only either one of the two query terms Uhm, this should not be true. What's the output of adding debug=query? And are you totally sure the above is true and you're just not seeing the other term in the return? Or that you have a synonyms file that is someh

Re: Score higher if multiple terms match

2017-06-07 Thread OTH
I'm sorry, there was a mistake. I previously wrote: However, these are returning only those documents which have both the terms > 'tv promotion' in them (there are a few). It's not returning any > document which have only 'tv' or only 'promotion' in them. That's not true at all; it is indeed r

Re: Score higher if multiple terms match

2017-06-07 Thread OTH
Thanks. Both of these are working in my case: name:"tv promotion" --> name:"tv promotion" name:tv AND name:promotion --> name:tv AND name:promotion (Although I'm assuming, the first might not have worked if my document had been say 'promotion tv' or 'tv xyz promotion') However, these are return

Re: Score higher if multiple terms match

2017-06-07 Thread David Hastings
sorry, i meant debug query where you would get output like this: "debug": { "rawquerystring": "name:tv promotion", "querystring": "name:tv promotion", "parsedquery": "+name:tv +text:promotion", On Wed, Jun 7, 2017 at 4:41 PM, David Hastings wrote: > well, short answer, use the anal

Re: Score higher if multiple terms match

2017-06-07 Thread David Hastings
well, short answer, use the analyzer to see whats happening. long answer theres a difference between name:tv promotion --> name:tv default_field:promotion name:"tv promotion" --> name:"tv promotion" name:tv AND name:promotion --> name:tv AND name:promotion since your default field most lik

Re: score mixing

2016-03-28 Thread Mikhail Khludnev
Hello Michael, You have a good chance with _val_:rank, I suppose see https://cwiki.apache.org/confluence/display/solr/Function+Queries. Beware of query parsing traps, check that query is parsed properly. On Sun, Mar 27, 2016 at 11:57 AM, michael solomon wrote: > Hi, > I have nested documents an

Re: score mixing

2016-03-27 Thread Reth RM
If you are looking for boosting the score of the document based on the value of rank field then you can as well use field boosting. rank^10. For the other case of adding scores and rank values, using "function query" should serve the requirement. https://cwiki.apache.org/confluence/display/solr/Th

RE: Score results by only the highest scoring term

2015-02-03 Thread Markus Jelsma
Either use the MaxScoreQueryParser [1] or set tie to zero when using a DisMax parser. [1]: https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-MaxScoreQueryParser -Original message- > From:Burgmans, Tom > Sent: Tuesday 3rd February 2015 16:13 > To: solr-user@

Re: Score phrases higher than the records containing the words?

2014-10-30 Thread Erick Erickson
So what happens if you increase the boost to 100? or 20? The problem is that boosting will always be "more art than science". What about the other 3 possibilities I mentioned? Basically, you have to tweak things to fit your corpus, and it's often an empirically determined thing. Best, Erick On

Re: Score phrases higher than the records containing the words?

2014-10-30 Thread hschillig
The other ones are still rating higher. I think it's because the other two titles contain "what" 3 times.. the more it says what, the higher it scores. I'm not sure what else can be done. Does anybody else have any ideas? -- View this message in context: http://lucene.472066.n3.nabble.com/Score

Re: Score phrases higher than the records containing the words?

2014-10-30 Thread hschillig
Edit: I filtered my query to author:randall so I could see the score that it's getting from the query. This is the score of the record that contains "what if": "score": 0.004032644 The other two books are getting this score: "score": 0.0069850935 So... the boost is obviously not hitting that reco

Re: Score phrases higher than the records containing the words?

2014-10-30 Thread hschillig
How can I tell if the stop words is resolved? This is what I get when I turn debugging on: http://apaste.info/0Uz When I put: q=title:(what if) OR title:"what if"^10 I get this: "rawquerystring": "title:(what if) OR title:\"what if\"^10", "querystring": "title:(what if

Re: Score phrases higher than the records containing the words?

2014-10-29 Thread Erick Erickson
First thing is add &debug=query to the URL and see what the parsed form of the query is to be sure the stop words issue is resolved. Once that's determined, add the phrase with a high boost, something like q=title:(what if) OR title:"what if"^10 where the boost factor is TBD. Or add the title fi

Re: score retrieval performance

2014-05-19 Thread Gora Mohanty
On 19 May 2014 19:52, Michael Ryan wrote: > Is there any significant difference in query speed when retrieving the score > pseudo-field? E.g., does... > > q=foo&sort=date+desc&fl=*,score > > ...take longer to run than... > > q=foo&sort=date+desc&fl=* > > I know there's different code paths in Sol

Re: Score is always zero

2014-04-20 Thread Doug Turnbull
2014 9:42 PM > To: Arun V C.; solr-user@lucene.apache.org > Subject: RE: Score is always zero > > Arun, your field norms are all suspiciously 0, which.multiplied through > the scoring calculation causes the overall score to be 0. > > Are you using anything other than the default similarit

RE: Score is always zero

2014-04-20 Thread Doug Turnbull
Arun, your field norms are all suspiciously 0, which.multiplied through the scoring calculation causes the overall score to be 0. Are you using anything other than the default similarity? Could you post the relevant parts.of your schema (field definition, field types, similarity, etc)? -Doug Sen

Re: Score of Search Term for every character remove

2014-02-03 Thread Jack Krupansky
k Erickson Sent: Monday, February 3, 2014 2:08 PM To: solr-user@lucene.apache.org Subject: Re: Score of Search Term for every character remove Maybe edgeNgram tokenizer? You haven't told us what the fields in the docs you care about are Best, Erick On Mon, Feb 3, 2014 at 4:48 AM, Lusun

Re: Score of Search Term for every character remove

2014-02-03 Thread Erick Erickson
Maybe edgeNgram tokenizer? You haven't told us what the fields in the docs you care about are Best, Erick On Mon, Feb 3, 2014 at 4:48 AM, Lusung, Abner wrote: > Hi, > > > > I'm new with using SOLR and I'm curious if this is capable of doing the > following or similar. > > > > Sample: > > Q

Re: Score field statistics

2013-04-14 Thread lexus
Solution found here: http://hokiesuns.blogspot.com/2012/11/using-solrs-postfiltering-to-collect.html -- View this message in context: http://lucene.472066.n3.nabble.com/Score-field-statistics-tp4055089p4055915.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Score field statistics

2013-04-11 Thread Gora Mohanty
On 11 April 2013 13:41, lexus wrote: > Thanks for response, > > But problem is that "SolrException: undefined field: score" appears after > trying to get stats for score pseudo field. [...] Sorry, didn't catch the part where you also wanted statistics from the StatsComponent. I do not think that

Re: Score field statistics

2013-04-11 Thread lexus
Thanks for response, But problem is that "SolrException: undefined field: score" appears after trying to get stats for score pseudo field. Sincerely, Alex Gora Mohanty-3 wrote > Even simpler: You can just add &fl=*,score to get the score returned > in the search results along with all other fi

Re: Score field statistics

2013-04-10 Thread Gora Mohanty
On 10 April 2013 22:03, lexus wrote: > > In our application we are using Solr 4.1. > And we wanna filter results by score relevance. > I had the idea to use statistic data (i.e. standard deviation, mean) for > score field. > Is it exists workaround of using "…stats=true&stats.field=score..." ? Ev

Re: Score after boost & before

2013-04-08 Thread Chris Hostetter
: I am using edismax and boosting certain fields using bq during query time. : : I would like to compare effect of boost side by side with original score : without boost. Is there anyway i can get original score without boosting? using functions and DocTransformers, it's possible to get the nume

RE: Score after boost & before

2013-04-05 Thread Swati Swoboda
, April 05, 2013 12:37 PM To: solr-user@lucene.apache.org Subject: Re: Score after boost & before we do that now, but thats very time consuming. Also we want our QA to have that info available on search result page in debug mode. -- View this message in context: http://lucene.47206

Re: Score after boost & before

2013-04-05 Thread abhayd
we do that now, but thats very time consuming. Also we want our QA to have that info available on search result page in debug mode. -- View this message in context: http://lucene.472066.n3.nabble.com/Score-after-boost-before-tp4054052p4054102.html Sent from the Solr - User mailing list archi

Re: Score after boost & before

2013-04-05 Thread Gora Mohanty
On 5 April 2013 18:11, abhayd wrote: > hi > > I am using edismax and boosting certain fields using bq during query time. > > I would like to compare effect of boost side by side with original score > without boost. Is there anyway i can get original score without boosting? Do not think that is po

Re: score calculation

2012-12-14 Thread Jack Krupansky
: Friday, December 14, 2012 1:36 AM To: solr-user@lucene.apache.org Subject: Re: score calculation Using Toms reply i have got most of the terms, The following is my understanding of a single doc score, 5.528805 = (MATCH) sum of: (sum of scores = 0.08775589 + 5.441049) 0.08775589 = (MATCH

Re: score calculation

2012-12-13 Thread Sangeetha
Using Toms reply i have got most of the terms, The following is my understanding of a single doc score, 5.528805 = (MATCH) sum of: (sum of scores = 0.08775589 + 5.441049) 0.08775589 = (MATCH) weight(text:sachin in 286) [DefaultSimilarity], result of: 0.08775589 = score(doc=286,freq=2.0 = ter

Re: score calculation

2012-12-13 Thread Chris Hostetter
: Can anyone explain or provide some links? https://wiki.apache.org/solr/SolrRelevancyFAQ#How_are_documents_scored -Hoss

Re: score calculation

2012-12-13 Thread Aloke Ghoshal
Hi Tom, This is great. Should make it to the documentations. Regards, Aloke On Thu, Dec 13, 2012 at 1:23 PM, Burgmans, Tom < tom.burgm...@wolterskluwer.com> wrote: > I am also busy with getting this clear. Here are my notes so far (by > copying and writing myself): > > > > queryWeight = the

RE: score calculation

2012-12-12 Thread Burgmans, Tom
I am also busy with getting this clear. Here are my notes so far (by copying and writing myself): queryWeight = the impact of the query against the field implementation: boost(query)*idf*queryNorm boost(query) = boost of the field at query-time Implication: hits in fie

Re: score filter

2012-06-11 Thread Chris Hostetter
: I need to frame a query that is a combination of two query parts and I use a : 'function' query to prepare the same. Something like: : q={!type=func q.op=AND df=text}product(query($uq,0.0),query($cq,0.1)) : : where $uq and $cq are two queries. : : Now, I want a search result returned only if I

Re: score filter

2012-06-05 Thread debdoot
Hello Grant, I need to frame a query that is a combination of two query parts and I use a 'function' query to prepare the same. Something like: q={!type=func q.op=AND df=text}product(query($uq,0.0),query($cq,0.1)) where $uq and $cq are two queries. Now, I want a search result returned only if I

Re: score based on unique words matching

2011-11-03 Thread Chris Hostetter
: > q=david bowie changes : > : > Problem : If a record mentions david bowie a lot, it beats out something : > more relevant (more unique matches) ... : > : > A. (now appearing david bowie at the cineplex 7pm david bowie goes on stage, : > then mr. bowie will sign autographs) : > B. song :david

Re: score based on unique words matching???

2011-10-19 Thread Ahmet Arslan
> >> Heres my problem : > >> > >> field1 (text) - subject > >> q=david bowie changes > >> > >> Problem : If a record mentions david bowie a lot, > it beats out something more relevant (more unique matches) > ... > >> > >> A. (now appearing david bowie at the cineplex 7pm > david bowie goes on st

Re: Score

2011-08-16 Thread Yonik Seeley
On Mon, Aug 15, 2011 at 8:13 PM, Bill Bell wrote: > How do I change the score to scale it between 0 and 100 irregardless of the > score? > > q.alt=*:*&bq=lang:Spanish&defType=dismax Doing this for a single query is easy: when you retrieve scores, the maxScore is also reported. So just do score/

Re: Score

2011-08-15 Thread Shashi Kant
https://wiki.apache.org/lucene-java/ScoresAsPercentages On Mon, Aug 15, 2011 at 8:13 PM, Bill Bell wrote: > How do I change the score to scale it between 0 and 100 irregardless of the > score? > > q.alt=*:*&bq=lang:Spanish&defType=dismax > > Bill Bell > Sent from mobile > >

Re: score of Infinity on dismax query

2011-06-19 Thread Robert Muir
This is a bug, thanks for including all the information necessary to reproduce! https://issues.apache.org/jira/browse/LUCENE-3215 On Sun, Jun 19, 2011 at 10:24 PM, Chris Book wrote: > Hello, I have a solr search server running and in at least one very rare > case, I'm seeing a strange scoring re

Re: score from two cores

2011-02-16 Thread linkedLetter
A common problem in metasearch engines. Its not intractable. You just have to surface the right statistics into a 'fusion' scorer. - NOT always nice. When are we getting better releases? -- View this message in context: http://lucene.472066.n3.nabble.com/score-from-two-cores-tp2012444p25156

Re: score from two cores

2010-12-03 Thread Paul
On Fri, Dec 3, 2010 at 4:47 PM, Erick Erickson wrote: > But why do you have two cores in the first place? Is it really necessary or > is it just > making things more complex? I don't know why the OP wants two cores, but I ran into this same problem and had to abandon using a second core. My use c

Re: score from two cores

2010-12-03 Thread Erick Erickson
If I search a term from documents, in order to display > search results to user, I have to get Keys from documents and then redo > search from metadata. Then score is different. > > Please give me some suggestions! > > Thanks so much, > Xiaohui > > -----Original Message

RE: score from two cores

2010-12-03 Thread Ma, Xiaohui (NIH/NLM/LHC) [C]
redo search from metadata. Then score is different. Please give me some suggestions! Thanks so much, Xiaohui -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, December 03, 2010 12:37 PM To: solr-user@lucene.apache.org Subject: Re: score from two cores

Re: score from two cores

2010-12-03 Thread Erick Erickson
Uhhm, what are you trying to do? What do you want to do with the scores from two cores? Best Erick On Fri, Dec 3, 2010 at 11:21 AM, Ma, Xiaohui (NIH/NLM/LHC) [C] < xiao...@mail.nlm.nih.gov> wrote: > I have multiple cores. How can I deal with score? > > Thanks so much for help! > Xiaohui >

Re: Score boosting

2010-07-11 Thread Chamnap Chhorn
Thanks for your reply. Do you have other solution? Here each keyphrase must be matched with the exact and whole world. The problem is that it is a multivalued column. Chamnap On Thu, Jul 8, 2010 at 7:40 PM, osocurious2 wrote: > > Sounds like you want Payloads. I don't think you can guarantee a p

Re: Score boosting

2010-07-08 Thread osocurious2
Sounds like you want Payloads. I don't think you can guarantee a position, but you can boost relative to others. You can give one author/book a boost of 0 for the phrase Cooking, and another author/book a boost of .5 and yet another a boost of 1.0. For searches that include the phrase Cooking, the

Re: Score cutoff

2010-05-04 Thread dc tech
Michael, The cutoff filter would be very useful for us as well. We want to use it for more like this feature where only the top n similar docs tend to be reallt similar. On 5/4/10, Michael Kuhlmann wrote: > Am 03.05.2010 23:32, schrieb Satish Kumar: >> Hi, >> >> Can someone give clues on how to

Re: Score cutoff

2010-05-04 Thread Michael Kuhlmann
Am 03.05.2010 23:32, schrieb Satish Kumar: > Hi, > > Can someone give clues on how to implement this feature? This is a very > important requirement for us, so any help is greatly appreciated. > Hi, I just implemented exactly this feature. You need to patch Solr to make this work. We at Zaland

Re: Score cutoff

2010-05-03 Thread Satish Kumar
Hi, Can someone give clues on how to implement this feature? This is a very important requirement for us, so any help is greatly appreciated. thanks! On Tue, Apr 27, 2010 at 5:54 PM, Satish Kumar < satish.kumar.just.d...@gmail.com> wrote: > Hi, > > For some of our queries, the top xx (five or

Re: score computation for dismax handler

2010-02-22 Thread Jay Hill
Set the "tie" parameter to 1.0. This param is set between 0.0 (pure disjunction maximum) and 1.0 (pure disjunction sum): http://wiki.apache.org/solr/DisMaxRequestHandler#tie_.28Tie_breaker.29 -Jay On Thu, Feb 18, 2010 at 4:24 AM, bharath venkatesh < bharathv6.proj...@gmail.com> wrote: > Hi , >

Re: score = result of function query

2009-12-30 Thread Grant Ingersoll
On Dec 30, 2009, at 5:27 PM, Joe Calderon wrote: > how can i make the score be solely the output of a function query? > > the function query wiki page details something like > q=boxname:findbox+_val_:"product(product(x,y),z)"&fl=*,score > > Wrap the non-function query part in parenthesis and

Re: score = sum of boosts

2009-09-03 Thread Walter Underwood
You could start with a TF formula that ignores frequencies above 1. "onOffTF", I guess, returning 1 if the term is there one or more times. Or, you could tell us what you are trying to achieve. wunder On Sep 3, 2009, at 12:28 AM, Shalin Shekhar Mangar wrote: On Thu, Sep 3, 2009 at 4:09 AM, J

Re: score = sum of boosts

2009-09-03 Thread Shalin Shekhar Mangar
On Thu, Sep 3, 2009 at 4:09 AM, Joe Calderon wrote: > hello *, what would be the best approach to return the sum of boosts > as the score? > > ex: > a dismax handler boosts matches to field1^100 and field2^50, a query > matches both fields hence the score for that row would be 150 > > Not really.

Re: score filter

2009-02-11 Thread Grant Ingersoll
fore and after it is implemented, because it will get worse. Then you can stop doing it. wunder On 2/11/09 8:28 AM, "Cheng Zhang" wrote: Just did some research. It seems that it's doable with additional code added to Solr but not out of box. Thank you, Grant. - Original

Re: score filter

2009-02-11 Thread Walter Underwood
t of box. Thank you, Grant. > > > > - Original Message > From: Grant Ingersoll > To: "solr-user@lucene.apache.org" > Sent: Wednesday, February 11, 2009 8:14:01 AM > Subject: Re: score filter > > At what point do you draw the line? 0.01 is too lo

Re: score filter

2009-02-11 Thread Cheng Zhang
Just did some research. It seems that it's doable with additional code added to Solr but not out of box. Thank you, Grant. - Original Message From: Grant Ingersoll To: "solr-user@lucene.apache.org" Sent: Wednesday, February 11, 2009 8:14:01 AM Subject: Re: score

Re: score filter

2009-02-11 Thread Grant Ingersoll
which have score > nnn. Thx, Kevin - Original Message From: Grant Ingersoll To: solr-user@lucene.apache.org Sent: Wednesday, February 11, 2009 6:47:11 AM Subject: Re: score filter What's the motivation for wanting to do this? The reason I ask, is score is a relative thi

Re: score filter

2009-02-11 Thread Cheng Zhang
- From: Grant Ingersoll To: solr-user@lucene.apache.org Sent: Wednesday, February 11, 2009 6:47:11 AM Subject: Re: score filter What's the motivation for wanting to do this? The reason I ask, is score is a relative thing determined by Lucene based on your index statistics. It is only meaning

Re: score filter

2009-02-11 Thread Grant Ingersoll
What's the motivation for wanting to do this? The reason I ask, is score is a relative thing determined by Lucene based on your index statistics. It is only meaningful for comparing the results of a specific query with a specific instance of the index. In other words, it isn't useful to

Re: Score always 0.0

2008-11-24 Thread Cedric Houis
Thanks a lot Yonik. Effectively, I had something like that in my code: SchemaField sfield = _schema.getFieldOrNull(fieldName); if (sfield != null) doc.add(sfield.createField(nodeValue, 0)); I set the boost value to 1 and it works now… Thanks again, Cédric Yonik Seeley wrote: > > Looks l

Re: Score always 0.0

2008-11-24 Thread Yonik Seeley
Looks like the norm for the doc for that field is 0... did you perhaps boost the field or document by 0 when indexing? -Yonik On Mon, Nov 24, 2008 at 9:59 AM, Cedric Houis <[EMAIL PROTECTED]> wrote: > > Hi Solr team. > > I've got a question about scoring; when we make a search like this: "bush >

Re: score customization

2007-11-17 Thread Yonik Seeley
On Nov 15, 2007 11:06 AM, Jae Joo <[EMAIL PROTECTED]> wrote: > I am looking for the way to get the score - only hundredth - ex. > 4.09something like that. > Currently, it has 7 decimal digits. 1.8032384 If you want to display scores only to the hundredths place, simply do that in your client. Ther

Re: Score of exact matches

2007-11-08 Thread Papalagi Pakeha
On 11/6/07, Walter Underwood <[EMAIL PROTECTED]> wrote: > This is fairly straightforward and works well with the DisMax > handler. Indes the text into three different fields with three > different sets of analyzers. Use something like this in the > request handler: > [...] > > exact^

RE: Score of exact matches

2007-11-06 Thread Norskog, Lance
: solr-user@lucene.apache.org Subject: Re: Score of exact matches This is fairly straightforward and works well with the DisMax handler. Indes the text into three different fields with three different sets of analyzers. Use something like this in the request handler: 0.01

Re: Score of exact matches

2007-11-05 Thread Walter Underwood
This is fairly straightforward and works well with the DisMax handler. Indes the text into three different fields with three different sets of analyzers. Use something like this in the request handler: 0.01 exact^16 noaccent^4 stemmed exact^16 no

Re: Score of exact matches

2007-11-05 Thread Mike Klaas
On 5-Nov-07, at 9:05 PM, Papalagi Pakeha wrote: Hi all, I use Solr 1.2 on a job advertising site. I started from the default setup that runs all documents and queries through EnglishPorterFilterFactory. As a result for example an ad with "accounts" in its title is matched when someone runs a qu

RE: Score customization

2007-10-29 Thread Victoria Kaganski
[mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 4:42 PM To: solr-user@lucene.apache.org Subject: Re: Score customization Victoria, Either use FunctionQuery's or hack around HitCollector.collect(int, float) in SolrIndexSearcher...and adjust the score using the additional value

Re: Score customization

2007-10-25 Thread Otis Gospodnetic
Victoria, Either use FunctionQuery's or hack around HitCollector.collect(int, float) in SolrIndexSearcher...and adjust the score using the additional values you mentioned. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Victoria Kaganski <[EM

Re: Score / Sort question

2007-03-19 Thread shai deljo
Yep, I get it. But from the tests I did it tips it enough for those cases to be rare (and probably justified). Thx On 3/19/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : wouldn't doing something like this in the query : : (field1:tag1 tag2) OR (field1:tag1 AND tag2) : The documents that have

Re: Score / Sort question

2007-03-19 Thread Chris Hostetter
: wouldn't doing something like this in the query : : (field1:tag1 tag2) OR (field1:tag1 AND tag2) : The documents that have all the tags (tag1 and tag2) will comply with : both conditions and get scores from both while the documents that : don't have both tags will only get a score from the 1st

Re: Score / Sort question

2007-03-18 Thread Walter Underwood
An example would help. A query and the results that you see. wunder On 3/18/07 6:48 PM, "shai deljo" <[EMAIL PROTECTED]> wrote: > I assumed the tf/idf would behave like this but it's behaving VERY > differently/wrong so i wonder maybe something is wrong with my > indexing strategy ? > I think fo

Re: Score / Sort question

2007-03-18 Thread shai deljo
Hey Chris, wouldn't doing something like this in the query : (field1:tag1 tag2) OR (field1:tag1 AND tag2) Achieve similar affect ? The documents that have all the tags (tag1 and tag2) will comply with both conditions and get scores from both while the documents that don't have both tags will on

Re: Score / Sort question

2007-03-18 Thread shai deljo
I assumed the tf/idf would behave like this but it's behaving VERY differently/wrong so i wonder maybe something is wrong with my indexing strategy ? I think for a quicker solution (ok, hack :) ) I'll run two different queries (AND, OR) and merge them. Does SOLR support some kind of merging i can

Re: Score / Sort question

2007-03-18 Thread Chris Hostetter
: How do i force SOLR to score documents that contain ALL terms 1st : before results that contain some of the terms? generally speaking this is hte result you will usually on random data ... under the covers Lucene uses TF/IDF based weighting of terms, with a coord factor that penalizes queries t