[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-154) Provide a facility to access Lucene query explanations

Nick Vincent (JIRA) noreply at atlassian.com
Thu Feb 14 09:37:33 EST 2008


Provide a facility to access Lucene query explanations
------------------------------------------------------

                 Key: HSEARCH-154
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-154
             Project: Hibernate Search
          Issue Type: New Feature
          Components: query
    Affects Versions: 3.0.0.GA
         Environment: Hibernate 3.2
            Reporter: Nick Vincent
            Priority: Minor
         Attachments: explainpatch.txt

Hibernate search should provide a facility where it is possible access the Lucene explanation for a Hit object. I've attached a patch that allows it to do this.

I've implemented this only at the FullTextQueryImpl level such that it does not appear in the public API as it seems rather Lucene specific to include in the FullTextQuery interface.

Using this patch it is possible to access the explanation for a document by casting FullTextQuery to its implementation class.

It is also necessary to be able to discover the internal Lucene document id for a document in order to be able to request an Explanation object.  I've added this to the projection constants and modified DocumentExtractor to utilise it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list