Reputation: 1570
Is there a way to return page contents (which is indexed in _text_
field) or the textual content of an indexed document in the returned results from a Solr query?
The document page contents are indexed in _text_
field, but if I use that as my filtered list (fl) I just get {} returned.
Upvotes: 1
Views: 364
Reputation: 26690
The default definition for the _text_
field is for it to be indexed but not stored, which means you can use if for searches (e.g. in the q
parameter) but you cannot fetch its value (e.g. in the fl
parameter)
You can look at the definition for this field with the following command:
$ curl localhost:8983/solr/name-of-core/schema/fields/_text_
{
"responseHeader":{
"status":0,
"QTime":2},
"field":{
"name":"_text_",
"type":"text_general",
"multiValued":true,
"indexed":true,
"stored":false}}
Upvotes: 2