Hi ,
      Can the result of solr show the only a part of the content of a
document that got in the result.
example

if i send a query for to search tika then the result should be as follows:::

<response>
-<lst name="responseHeader">
        <int name="status">0</int>
        <int name="QTime">79</int>
</lst>
-<result name="response" numFound="62" start="0">
<doc>
-<arr name="content_type">
       <str>text/html</str>
</arr>
 <str name="id">1html</str>
-<arr name="text">
-<str>
   Apache Tomcat/6.0.26 - Error report    HTTP Status 500 -
org.apache.tika.exception.TikaException: Unexpected RuntimeException from
org.apache.tika.parser.pdf.pdfpar...@cc9d70

org.apache.solr.common.SolrException:
org.apache.tika.exception.TikaException: Unexpected RuntimeException from
org.apache.tika.parser.pdf.pdfpar...@cc9d70
    at
org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:214)
    at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:54)
    at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
    at
org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:237)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1323)
    at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:337).......

     </str>
   </arr>
</doc>


The result should not show the entire content of a file. It should show up
only a part of the content where the query word is present..As like the
google result and like search result in the lucidimagionation....

Regards,
satya

Reply via email to