You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by rayvicky <zo...@gmail.com> on 2012/10/12 08:42:30 UTC

solr highlight problem

sb.append("title:test vicky");
SolrQuery query = new SolrQuery();  
query.setQuery(sb.toString());    

query.setHighlight(true);
query.addHighlightField("title");
query.setHighlightSimplePre("");
query.setHighlightSimplePost("");
query.setHighlightSnippets(2);
query.setHighlightFragsize(500);

title: my name test is vicky
result:my name test is vicky

why missing vicky?



--
View this message in context: http://lucene.472066.n3.nabble.com/solr-highlight-problem-tp4013273.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr highlight problem

Posted by rayvicky <zo...@gmail.com>.
thank you .I have solved



--
View this message in context: http://lucene.472066.n3.nabble.com/solr-highlight-problem-tp4013273p4013279.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr highlight problem

Posted by Maurizio Cucchiara <mc...@apache.org>.
What do you mean by missing vicky?
Did you mean a second fragment?

Sent from my mobile device, so please excuse typos and brevity.

Maurizio Cucchiara
Il giorno 12/ott/2012 08.42, "rayvicky" <zo...@gmail.com> ha scritto:

> sb.append("title:test vicky");
> SolrQuery query = new SolrQuery();
> query.setQuery(sb.toString());
>
> query.setHighlight(true);
> query.addHighlightField("title");
> query.setHighlightSimplePre("");
> query.setHighlightSimplePost("");
> query.setHighlightSnippets(2);
> query.setHighlightFragsize(500);
>
> title: my name test is vicky
> result:my name test is vicky
>
> why missing vicky?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/solr-highlight-problem-tp4013273.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>