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

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

I do the search from the Solr Admin UI, under Query. If I didn't request the 
content field in the fl parameters, this is what I got.

{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "indent":"true",
      "q":"*:*",
      "wt":"json"}},
  "response":{"numFound":2,"start":0,"docs":[
      {
        "id":"C:\\Users\\GHI\\solr-5.0.0\\example\\exampledocs\\solr-word.pdf",
        "meta_save_date":["2008-11-13T00:00:00Z"],
        "dc_subject":["solr, word, pdf"],
        "subject":["solr word"],
        "author":["Grant Ingersoll"],
        "dcterms_created":["2008-11-13T00:00:00Z"],
        "date":["2008-11-13T00:00:00Z"],
        "creator":["Grant Ingersoll"],
        "creation_date":["2008-11-13T00:00:00Z"],
        "title":["solr-word"],
        "meta_author":["Grant Ingersoll"],
        "stream_content_type":["application/pdf"],
        "created":["Thu Nov 13 13:35:51 UTC 2008"],
        "stream_size":[21052],
        "meta_keyword":["solr, word, pdf"],
        "cp_subject":["solr word"],
        "dc_format":["application/pdf; version=1.3"],
        "xmp_creatortool":["Microsoft Word"],
        
"resourcename":["C:\\Users\\GHI\\solr-5.0.0\\example\\exampledocs\\solr-word.pdf"],
        "keywords":["solr, word, pdf"],
        "last_save_date":["2008-11-13T00:00:00Z"],
        "dc_title":["solr-word"],
        "dcterms_modified":["2008-11-13T00:00:00Z"],
        "meta_creation_date":["2008-11-13T00:00:00Z"],
        "dc_creator":["Grant Ingersoll"],
        "pdf_pdfversion":[1.3],
        "last_modified":["2008-11-13T00:00:00Z"],
        "aapl_keywords":["solr, word, pdf"],
        "x_parsed_by":["org.apache.tika.parser.DefaultParser",
          "org.apache.tika.parser.pdf.PDFParser"],
        "modified":["2008-11-13T00:00:00Z"],
        "xmptpg_npages":[1],
        "pdf_encrypted":[false],
        "producer":["Mac OS X 10.5.5 Quartz PDFContext"],
        "content_type":["application/pdf"],
        "_version_":1494155334466404352},
      {
        "id":"C:\\Users\\GHI\\solr-5.0.0\\example\\exampledocs\\solr-word2.pdf",
        "meta_save_date":["2015-02-25T00:00:00Z"],
        "author":["GHI"],
        "dcterms_created":["2015-02-25T00:00:00Z"],
        "date":["2015-02-25T00:00:00Z"],
        "creator":["GHI"],
        "creation_date":["2015-02-25T00:00:00Z"],
        "title":["This is another test of PDF extraction in Solr"],
        "meta_author":["GHI"],
        "stream_content_type":["application/pdf"],
        "created":["Wed Feb 25 08:32:19 UTC 2015"],
        "stream_size":[10345],
        "dc_format":["application/pdf; version=1.4"],
        "xmp_creatortool":["PDFCreator Version 1.3.2"],
        
"resourcename":["C:\\Users\\GHI\\solr-5.0.0\\example\\exampledocs\\solr-word2.pdf"],
        "last_save_date":["2015-02-25T00:00:00Z"],
        "dc_title":["This is another test of PDF extraction in Solr"],
        "dcterms_modified":["2015-02-25T00:00:00Z"],
        "meta_creation_date":["2015-02-25T00:00:00Z"],
        "dc_creator":["GHI"],
        "pdf_pdfversion":[1.4],
        "last_modified":["2015-02-25T00:00:00Z"],
        "x_parsed_by":["org.apache.tika.parser.DefaultParser",
          "org.apache.tika.parser.pdf.PDFParser"],
        "modified":["2015-02-25T00:00:00Z"],
        "xmptpg_npages":[1],
        "pdf_encrypted":[false],
        "producer":["GPL Ghostscript 9.05"],
        "content_type":["application/pdf"],
        "_version_":1494155342991327232}]
  }}

If I request for the content field in the fl parameters, this is what I got.

{
  "responseHeader": {
    "status": 0,
    "QTime": 28,
    "params": {
      "fl": "content",
      "indent": "true",
      "q": "*:*",
      "_": "1425288250244",
      "wt": "json"
    }
  },
  "response": {
    "numFound": 2,
    "start": 0,
    "docs": [
      {},
      {}
    ]
  }
}

> 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