[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-154) Provide a facility to access Lucene query explanations
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Wed Jul 16 20:18:46 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved HSEARCH-154.
--------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0.Beta1
Add
fullTextQuery.explain(int);
and
fullTextQuery.setProjection(FullTextQuery.EXPLANATION)
The second shoud be used only if small amount of data is retrieved.
> 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
> Fix For: 3.1.0.Beta1
>
> 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