I'm not quite sure what Tika exceptions mean in this context.
You can give the 'fl=field1,field2' option to only return some fields in
a query.
You can get google-like results using highlighting and 'snippetizing'.
These are documented on the wiki.
satya swaroop wrote:
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