There's a ! missing in there, try {!key=label}.

Regards,

gwk

On 2/18/2010 5:01 AM, adeelmahmood wrote:
okay so if I dont want to do any excludes then I am assuming I should just
put in {key=label}field .. i tried that and it doesnt work .. it says
undefined field {key=label}field


Lance Norskog-2 wrote:
Here's the problem: the wiki page is confusing:

http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters

The line:
q=mainquery&fq=status:public&fq={!tag=dt}doctype:pdf&facet=on&facet.field={!ex=dt}doctype

is standalone, but the later line:

facet.field={!ex=dt key=mylabel}doctype

mean 'change the long query from {!ex=dt}docType to {!ex=dt
key=mylabel}docType'

'tag=dt' creates a tag (name) for a filter query, and 'ex=dt' means
'exclude this filter query'.

On Wed, Feb 17, 2010 at 4:30 PM, adeelmahmood<adeelmahm...@gmail.com>
wrote:
simple question: I want to give a label to my facet queries instead of
the
name of facet field .. i found the documentation at solr site that I can
do
that by specifying the key local param .. syntax something like
facet.field={!ex=dt%20key='By%20Owner'}owner

I am just not sure what the ex=dt part does .. if i take it out .. it
throws
an error so it seems its important but what for ???

also I tried turning on the highlighting and i can see that it adds the
highlighting items list in the xml at the end .. but it only points out
the
ids of all the matching results .. it doesnt actually shows the text data
thats its making a match with // so i am getting something like this back

<lst name="highlighting">
  <lst name="ID-00002108"/>
  <lst name="ID-00000509"/>
...

instead of the actual text thats being matched .. isnt it supposed to do
that and wrap the search terms in em tag .. how come its not doing that
in
my case

here is my schema
<field name="id" type="string" indexed="true" stored="true"
required="true"
/>
<field name="title" type="string" indexed="true" stored="true" />
<field name="owner" type="string" indexed="true" stored="true" />
<field name="status" type="string" indexed="true" stored="true" />

--
View this message in context:
http://old.nabble.com/labeling-facets-and-highlighting-question-tp27632747p27632747.html
Sent from the Solr - User mailing list archive at Nabble.com.




--
Lance Norskog
goks...@gmail.com



Reply via email to