pf nixes fl

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

pf nixes fl

Jason Rennie-2
Just tried adding a pf field to my request handler.  When I did this, solr
returned all document fields for each doc (no "score") instead of returning
the fields specified in fl.  Bug?  Feature?  Anyone know what the reason for
this behavior is?  I'm using solr 1.2.

Thanks,

Jason
Reply | Threaded
Open this post in threaded view
|

Re: pf nixes fl

Mike Klaas

On 22-Jul-08, at 11:53 AM, Jason Rennie wrote:

> Just tried adding a pf field to my request handler.  When I did  
> this, solr
> returned all document fields for each doc (no "score") instead of  
> returning
> the fields specified in fl.  Bug?  Feature?  Anyone know what the  
> reason for
> this behavior is?  I'm using solr 1.2.

What exact url did you send to Solr?  I bet there is a missing '&'.

-Mike
Reply | Threaded
Open this post in threaded view
|

Re: pf nixes fl

Jason Rennie-2
I'm using solrj and all I did was add a pf entry to solrconfig.xml.  I don't
think it could be an ampersand issue...

Here's an example query:

wt=xml&rows=10&start=0&q=urban+outfitters&qt=recsKeyword&version=2.2

Here's qt config:

  <requestHandler name="recsKeyword" class="solr.StandardRequestHandler" >
         <float name="tie">0.06</float>
     <str name="qf">
                name^1.5 tags description^0.6 vendorname^0.3
manufacturer^0.3 category
     </str>
     <str name="pf">name description</str>
     <str name="fl">id score</str>
     <str name="mm">0</str>
     <str name="fq">status:0</str>
  </requestHandler>

The above query returns all document fields, no "score" field.

Jason

On Tue, Jul 22, 2008 at 2:55 PM, Mike Klaas <[hidden email]> wrote:

>
> On 22-Jul-08, at 11:53 AM, Jason Rennie wrote:
>
>  Just tried adding a pf field to my request handler.  When I did this, solr
>> returned all document fields for each doc (no "score") instead of
>> returning
>> the fields specified in fl.  Bug?  Feature?  Anyone know what the reason
>> for
>> this behavior is?  I'm using solr 1.2.
>>
>
> What exact url did you send to Solr?  I bet there is a missing '&'.
>
> -Mike
>



--
Jason Rennie
Head of Machine Learning Technologies, StyleFeeder
http://www.stylefeeder.com/
Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/
Reply | Threaded
Open this post in threaded view
|

Re: pf nixes fl

Jason Rennie-2
Doh!  I mistakenly changed the request handler from dismax to standard.
Ignore me...

Jason

On Tue, Jul 22, 2008 at 2:59 PM, Jason Rennie <[hidden email]> wrote:

> I'm using solrj and all I did was add a pf entry to solrconfig.xml.  I
> don't think it could be an ampersand issue...
>
> Here's an example query:
>
> wt=xml&rows=10&start=0&q=urban+outfitters&qt=recsKeyword&version=2.2
>
> Here's qt config:
>
>   <requestHandler name="recsKeyword" class="solr.StandardRequestHandler" >
>          <float name="tie">0.06</float>
>      <str name="qf">
>                 name^1.5 tags description^0.6 vendorname^0.3
> manufacturer^0.3 category
>      </str>
>      <str name="pf">name description</str>
>      <str name="fl">id score</str>
>      <str name="mm">0</str>
>      <str name="fq">status:0</str>
>   </requestHandler>
>
> The above query returns all document fields, no "score" field.
>
> Jason
>
>
> On Tue, Jul 22, 2008 at 2:55 PM, Mike Klaas <[hidden email]> wrote:
>
>>
>> On 22-Jul-08, at 11:53 AM, Jason Rennie wrote:
>>
>>  Just tried adding a pf field to my request handler.  When I did this,
>>> solr
>>> returned all document fields for each doc (no "score") instead of
>>> returning
>>> the fields specified in fl.  Bug?  Feature?  Anyone know what the reason
>>> for
>>> this behavior is?  I'm using solr 1.2.
>>>
>>
>> What exact url did you send to Solr?  I bet there is a missing '&'.
>>
>> -Mike
>>
>
>
>
> --
> Jason Rennie
> Head of Machine Learning Technologies, StyleFeeder
> http://www.stylefeeder.com/
> Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/
>



--
Jason Rennie
Head of Machine Learning Technologies, StyleFeeder
http://www.stylefeeder.com/
Samantha's blog & pictures: http://samanthalyrarennie.blogspot.com/