[ 
https://issues.apache.org/jira/browse/SOLR-7181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14342629#comment-14342629
 ] 

Yeo Zheng Lin commented on SOLR-7181:
-------------------------------------

Yes, I have indexed the documents and commit it. 
As the ExtractRequestHandler has already been defined in solrconfig.xml by 
default, and I'm using the ManagedIndexSchemaFactory. I have add the content 
field line to allow the indexed content to be shown when user does a query, as 
the default setting is not for the content to be shown. I added in using curl 
as follows:

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
    "update-field" : {
        "name":"text",
        "type":"text_general",
        "stored":true, "indexed":true, "storeOffsetsWithPositions":true}
}' http://localhost:8983/solr/collection1/schema


 I have indexed the document using the following command:
java -Dc=collection1 -Dauto=true -jar example\exampledocs\post.jar 
example\exampledcos\solr-word.pdf.

The document is successfully indexed, and when I does a search of any words 
from the content, the search is able to return document ID and other 
informations like subject, author, date, etc. However, the content of the 
document is not shown.



> Unable to show the indexed content in Solr 5.0
> ----------------------------------------------
>
>                 Key: SOLR-7181
>                 URL: https://issues.apache.org/jira/browse/SOLR-7181
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Yeo Zheng Lin
>
> The content field is unable to be shown during searching, even though the 
> following line has been added to the schema using curl from the resource 
> named in 'managedSchemaResourceName'. 
> <field name="content" stored="true" type="text_general" indexed="true"/>
> I'm using the schema from ManagedIndexSchemaFactory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to