You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by David Xiao <da...@gmail.com> on 2007/05/01 09:57:58 UTC

RE: The ability to offering offset of keyword in search result

Would you please give me an example? For example, I want to pick only fieldname="features"
from the query result

Regards,
David


-----Original Message-----
From: Chris Hostetter [mailto:hossman_lucene@fucit.org] 
Sent: Tuesday, April 24, 2007 1:50 AM
To: solr-dev@lucene.apache.org
Subject: RE: The ability to offering offset of keyword in search result


: It come up with another question: In response XML, can I suppress output
: of <result name="">.... section? Because I only need highlight section.

well ... not really, you can say rows=0 but then you won't get
highlighting either.

you can use "fl" to make it smaller though (just pick only one field,
score or your uniqueKey perhaps)


-Hoss


RE: The ability to offering offset of keyword in search result

Posted by David Xiao <da...@gmail.com>.
It works! 
By the way, fl=field1+field2+.... also works :-)



-----Original Message-----
From: Mike Klaas [mailto:mike.klaas@gmail.com] 
Sent: Wednesday, May 02, 2007 1:40 AM
To: solr-dev@lucene.apache.org
Subject: Re: The ability to offering offset of keyword in search result

On 5/1/07, David Xiao <da...@gmail.com> wrote:
> Would you please give me an example? For example, I want to pick only fieldname="features"
> from the query result

Try something like:

?q=a+query&hl=true&hl.fl=features&fl=features

-Mike


Re: The ability to offering offset of keyword in search result

Posted by Mike Klaas <mi...@gmail.com>.
On 5/1/07, David Xiao <da...@gmail.com> wrote:
> Would you please give me an example? For example, I want to pick only fieldname="features"
> from the query result

Try something like:

?q=a+query&hl=true&hl.fl=features&fl=features

-Mike