Re: Highlighting text field when query is for string field

2012-03-09 Thread solrdude
Or is it because query is on keyword field and I expect matching keywords
to be highlighted on excerpts field? Any insights would help a lot.

Thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlighting-text-field-when-query-is-for-string-field-tp3475334p3814159.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Highlighting text field when query is for string field

2012-01-17 Thread solrdude
Just to be clear, I do phrase query on string field like
q=keyword_text:smooth skin. I am expecting highlighting to be done on
excerpt field. What I see is:

lst name=highlighting
lst name=18602-1973/
lst name=18603-1973/
lst name=18604-1973/
/lst

These numbers are unique id's of documents. Where is excerpts with
highlighted text? Any idea?

Thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlighting-text-field-when-query-is-for-string-field-tp3475334p3668074.html
Sent from the Solr - User mailing list archive at Nabble.com.


Highlighting text field when query is for string field

2011-11-02 Thread solrdude
I have situation where I need to highlight matching phrases in text field
where as query is against string field. Its not highlighting now, may be
because in text field they are all terms and hence not a match for phrase.
How do i do it? With hl.alternateField, it identifies those things in
highlighting field, but not applying default em around matching phrase.
How do I get it to mark it?

Eg:
doc
str name=keyword_textsmooth skin/str  // field type: string
str name=excerptSmooth skin/str// field type: text
/doc

query:
http://localhost:8080/mycore/select?facet=truegroup.ngroups=truefacet.mincount=1group.limit=3facet.limit=10hl=truerows=10version=2start=0q=keyword:%22smooth+skin%22+and+publishStatus:Livegroup.field=productNamegroup=truefacet.field=brandhl.fl=excerpthl.alternateField=excerpt

Thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Highlighting-text-field-when-query-is-for-string-field-tp3475334p3475334.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr main query response input to facet query

2011-10-24 Thread solrdude
Hi,
I am implementing an solr solution where I want to use some field values
from main query output as an input in building facet. How do I do that?

Eg: 
Response from main query:

doc
str name=namename1/str
int name=prod_id200/int
/doc
doc
str name=namename1/str
int name=prod_id400/int
/doc

I want to build facet for the query where prod_id:200 prod_id:400. I like
to do all this in single query ideally. if it can't be done in one query, I
am ok with 2 query as well. Please help.

Thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-main-query-response-input-to-facet-query-tp3449938p3449938.html
Sent from the Solr - User mailing list archive at Nabble.com.