Apache Solr xslt
Being new to xml/xslt/solr, I am hoping someone can explain/help me with the following:
I am using Apache-Solr for searching a document. Solr returns the search result in XML, and has xslt support. I am using a php page for submitting the search, and display the result in html.
I indexed a 1.5MB size pdf document (400 pages). Using the admin interface with *:* query everything is there.
I then try using highlighting in the query, and modified the xsl file to return the highlighting.
It works fine for the text in the beginning of the document. I can query with a phrase between " " and it returns the exact match.
When searching content approx. beyond the first 100 pages, I see this behavior:
I must include common words in a phrase to get a result returned. For example if I search using the word handymen, that only appears in one place towards the end of the document, nothing is returned, but if I add a common word that appears in the sentence where handymen is; e.g. 'handymen that', then both are returned in the highlighting including many other occurrences of 'that'. If I query with "handymen that", nothing is returned.
I don't know if it is a Solr bug or if I am doing something wrong.
thanks
Ben
|