lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From win harrington <win_harring...@yahoo.com.INVALID>
Subject Re: display searched for text in Solr 6
Date Thu, 03 Nov 2016 17:13:08 GMT
I inserted five /opt/solr/*.txt files for testing. Four of the files contain the word 'notice'.Solr
finds 4 documents, but I can't see the text.
http://localhost:8983/solr/core1/select?fl=_text_&indent=on&q=notice&wt=json
"response":{"numFound":4, "start":0, "docs"{{},{},{},{}} 

    On Thursday, November 3, 2016 1:02 PM, Binoy Dalal <binoydalal93@gmail.com> wrote:
 

 Append the fields you want to display to the query using the fl parameter.
Eg. q=something&fl=_text_

On Thu, Nov 3, 2016 at 10:28 PM win harrington
<win_harrington@yahoo.com.invalid> wrote:

> I used solr/post to insert some *.txt files intoSolr 6. I can search for
> words in Solr and itreturns the id with the file name.
> How do I display the text?
> managed-schema has
> <field name="_text_" type="text_general" indexed="true" stored="true"
> multiValued="true"/>
> <copyField source="*" dest="_text_"/>
> Thank you.
>
-- 
Regards,
Binoy Dalal


   
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message