I *believe* I did that correctly, this is from my solrconf.xml:

<field name="content" type="text" stored="true" indexed="true"/>.

Perhaps I'm querying solr wrong?  Sample query:

http://testsite.com/solr/select/?q=<SEARCH_TERM>&fl=url,title,content&hl=true&hl.q=title,content&hl.fragsize=0


Josh Pavel

Phone: 919.601.7018
Email: [email protected]
IBM Special Events Team


|------------>
| From:      |
|------------>
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
  |Markus Jelsma <[email protected]>                                   
                                                                 |
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                        
                                                                 |
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
  |01/26/2012 02:25 PM                                                          
                                                                 |
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>----------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: Nutch + Solr ... looking for context around Hits in search display       
                                                                 |
  
>----------------------------------------------------------------------------------------------------------------------------------------------|





The Solr schema provided by Nutch does not store the content. To enable
highlighting in Solr you have to enable the component (see wiki doc) and
set
the stored attr to true for the content field.

> Hello all!
>
> We're changing things up and integrating our nutch crawls with a solr
> frontend.  It looks promising, but I might be missing something.  I get
> most of the fields with little/no worry - title, time, boost, etc., but I
> have NO content or context for the search term.  With the nutch .war, we
> would get a field that we could configure to display a set number of
words
> before and after the query word.  I seem to be striking out getting that
> same behavior in solr.
>
> Of interest might be: Nutch 1.2, solr 3.5, and we are currently using a
> publishing system to put the crawldb on the solr server (they are
different
> than our Nutch servers) instead of using the bin/nutch commands.  It
seems
> to work fine, as it reads the number of documents and does return
> applicable results.
>
> Thanks in advance!


Reply via email to