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 Michael Keeling <mi...@gmail.com> on 2014/07/10 23:02:55 UTC
Creating summary snippets for a null query
Hello,
I'm moving to Solr from another search engine that would always return a
snippet even for any empty/null search. In the case of an empty/null
search, the first N characters would be returned as the summary snippet.
What would be the best way to configure Solr and index content so that at
least 1 snippet is always returned, even for null *:* search?
It looks like this is happening on the search-lucene.com search --
http://search-lucene.com/?q=*%3A*
How was this accomplished?
Thanks!
Michael
Re: Creating summary snippets for a null query
Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi,
Please see hl.alternateField and hl.maxAlternateFieldLength parameters.
http://wiki.apache.org/solr/HighlightingParameters#hl.alternateField
Ahmet
On Friday, July 11, 2014 12:03 AM, Michael Keeling <mi...@gmail.com> wrote:
Hello,
I'm moving to Solr from another search engine that would always return a
snippet even for any empty/null search. In the case of an empty/null
search, the first N characters would be returned as the summary snippet.
What would be the best way to configure Solr and index content so that at
least 1 snippet is always returned, even for null *:* search?
It looks like this is happening on the search-lucene.com search --
http://search-lucene.com/?q=*%3A*
How was this accomplished?
Thanks!
Michael