Re: Boosting on field empty or not

2012-05-15 Thread Ahmet Arslan
Basically I want documents that have a given field populated to have a higher score than the documents that dont.  So if you search for foo I want documents that contain foo, but i want the documents that have field a populated to have a higher score... Hi Donald, Since you are using

Re: Boosting on field empty or not

2012-05-15 Thread Donald Organ
The problem with what you provided is it is boosting ALL documents whether the field is empty or not On Tue, May 15, 2012 at 3:52 AM, Ahmet Arslan iori...@yahoo.com wrote: Basically I want documents that have a given field populated to have a higher score than the documents that dont.

Re: Boosting on field empty or not

2012-05-15 Thread Ahmet Arslan
The problem with what you provided is it is boosting ALL documents whether the field is empty or not Then all of your fields are non-empty? What is the type of your field?

Re: Boosting on field empty or not

2012-05-15 Thread Ahmet Arslan
The problem with what you provided is it is boosting ALL documents whether the field is empty or not Then all of your fields are non-empty? What is the type of your field? How do you feed your documents to solr? My be you are indexing empty string? Is your field indexed=true?

Re: Boosting on field empty or not

2012-05-15 Thread Jack Krupansky
Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 4:01 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK it looks like the query change is working but it looks like it boosting everything even documents that have that field empty

Re: Boosting on field empty or not

2012-05-15 Thread Donald Organ
I have figured it out using your recommendation...I just had to give it a high enough boost. BTW its a float field On Tue, May 15, 2012 at 9:21 AM, Ahmet Arslan iori...@yahoo.com wrote: The problem with what you provided is it is boosting ALL documents whether the field is empty or

Re: Boosting on field empty or not

2012-05-15 Thread Donald Organ
Scratch that...it still seems to be boosting documents where the value of the field is empty. bq=regularprice:[0.01 TO *]^50 Results with bq set: doc float name=score2.2172112/float str name=codebhl-ltab-30/str /doc Results without bq set: doc float name=score2.4847748/float

Re: Boosting on field empty or not

2012-05-15 Thread Ahmet Arslan
Scratch that...it still seems to be boosting documents where the value of the field is empty. bq=regularprice:[0.01 TO *]^50 Results with bq set: doc     float name=score2.2172112/float     str name=codebhl-ltab-30/str   /doc Results without bq set: doc     float

Re: Boosting on field empty or not

2012-05-15 Thread Donald Organ
If the bq is only supposed apply the boost when the field value is greater than 0.01 why would trying another query make sure this is working. Its applying the boost to all the fields, yes when the boost is high enough most of documents with a value GT 0.01 show up first however since it is

Re: Boosting on field empty or not

2012-05-15 Thread Ahmet Arslan
If the bq is only supposed apply the boost when the field value is greater than 0.01 why would trying another query make sure this is working. Its applying the boost to all the fields, yes when the boost is high enough most of documents with a value GT 0.01 show up first however since

Re: Boosting on field empty or not

2012-05-15 Thread Ahmet Arslan
Just tested to make sure. queryNorm is changing after you add bq parameter. For example : 0.00317763 = queryNorm becomes 0.0028020076 = queryNorm. Since all scores are multiplied by this queryNorm factor, score of a document ( even if it is not effected/boosted by bq) changes. before

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
In a query or filter query you can write +field:* to require that a field be populated or +(-field:*) to require that it not be populated -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 2:10 PM To: solr-user Subject: Boosting on field empty or not

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
OK maybe i need to describe this a little more. Basically I want documents that have a given field populated to have a higher score than the documents that dont. So if you search for foo I want documents that contain foo, but i want the documents that have field a populated to have a higher

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
Sent: Monday, May 14, 2012 2:38 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK maybe i need to describe this a little more. Basically I want documents that have a given field populated to have a higher score than the documents that dont. So if you search for foo

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
does not have anything in the field, de-boost it. Choose the boost factors to suit your desired boosting effect. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 2:38 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
Sent: Monday, May 14, 2012 3:24 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK i just tried: q=chairs AND (regularprice:*^5 OR (-regularprice:*)5) And that gives me 0 results On Mon, May 14, 2012 at 2:51 PM, Jack Krupansky j...@basetechnology.comwrote

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
that you second boost operator was missing as well. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 3:24 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK i just tried: q=chairs AND (regularprice:*^5 OR (-regularprice

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
(*:* -regularprice:*)5 should be (*:* -regularprice:*)^0.5 - the missing boost operator. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 3:31 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not Still doesnt appear

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
-user@lucene.apache.org Subject: Re: Boosting on field empty or not Still doesnt appear to be working. Here is the full Query string: defType=edismaxstart=0rows=**24facet=trueqf=nameSuggest^**10 name^10 codeTXT^2 description^1 brand_search^0 cat_search^10spellcheck=true**spellcheck.collate

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
...@basetechnology.comwrote: (*:* -regularprice:*)5 should be (*:* -regularprice:*)^0.5 - the missing boost operator. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 3:31 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not Still

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
Change the second boost to 0.5 to de-boost doc that are missing the field value. You had them the same. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 4:01 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK it looks

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
-Original Message- From: Donald Organ Sent: Monday, May 14, 2012 4:01 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK it looks like the query change is working but it looks like it boosting everything even documents that have that field empty

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
Organ Sent: Monday, May 14, 2012 4:01 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK it looks like the query change is working but it looks like it boosting everything even documents that have that field empty On Mon, May 14, 2012 at 3:41 PM, Donald Organ

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
...@basetechnology.comwrote: Change the second boost to 0.5 to de-boost doc that are missing the field value. You had them the same. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 4:01 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty

Re: Boosting on field empty or not

2012-05-14 Thread Donald Organ
-Original Message- From: Donald Organ Sent: Monday, May 14, 2012 4:01 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not OK it looks like the query change is working but it looks like it boosting everything even documents that have that field empty On Mon, May

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
=*:*+AND+((*:*+-price:*)^0.5+OR+price:*^5)defType=edismaxdebugQuery=trueqf=text Let me try a couple more things. -- Jack Krupansky -Original Message- From: Donald Organ Sent: Monday, May 14, 2012 4:19 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not q=chairs

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
parser, but not in edismax. http://localhost:8983/solr/select/?q=the+AND+(price:*^5+OR+(*:*+-price:*)^0.5) -- Jack Krupansky -Original Message- From: Jack Krupansky Sent: Monday, May 14, 2012 4:49 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not It may

Re: Boosting on field empty or not

2012-05-14 Thread Jack Krupansky
=edismaxdebugQuery=trueqf=text -- Jack Krupansky -Original Message- From: Jack Krupansky Sent: Monday, May 14, 2012 7:21 PM To: solr-user@lucene.apache.org Subject: Re: Boosting on field empty or not Oh well, it looks like my suggestion is running into SOLR-3377 - eDismax: A fielded query