Not too sure what you're asking. Are you saying that you want to only
return a relevant part of a field in search results - i.e. a contextual
snippet?

If so, then you should look at the highlighting component, which can do
this.

http://wiki.apache.org/solr/HighlightingParameters

Upayavira

On Mon, Oct 21, 2013, at 07:57 PM, javozzo wrote:
> Hi,
> i'm new in solr.
> i use the content field to extract the text of solr documents, but this
> field is too long. 
> Is there a way to extract only a substring of this field?
> i make my query in java as follow:
> 
> SolrQuery querySolr = new SolrQuery();
> querySolr.setQuery("*:*");
> querySolr.setRows(3);
> querySolr.setParam("wt", "json");
> querySolr.addField("content");
> querySolr.addField("title");
> querySolr.addField("url");
> 
> any ideas?
> Thanks
> Danilo
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-extract-a-field-with-a-prefixed-dimension-tp4096877.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to