[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-119?pag...
]
Sanne Grinovero commented on HSEARCH-119:
-----------------------------------------
this is interesting, are there suggestions for the API?
I was thinkig about something like
FullTextQuery similar( type.class, Serializable id, String[] fields );
or
FullTextQuery similar( Object indexedEntityInstance, String[] fields );
Enable lucene similarity search based on term frequency vector by
QBE-like query
----------------------------------------------------------------------------------
Key: HSEARCH-119
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-119
Project: Hibernate Search
Issue Type: New Feature
Reporter: Xin Wu
Fix For: 3.2.0
Scenario:
Your bookstore application needs a function as follow:
When a user see a list of books, there is a similar books button for each book. If user
clicks this button of one book item, the similar books will be listed. The similarity is
evaluated by all terms in summary of the book and similarity score is dirived from Lucene
search similarity package which uses term frequency vectors in calculation. It will
compare the target in all corresponding documents in the index and return the hits in
order.
Note: this funtion is not same as fuzzy query which still needs a definite query
condition. In the contrast, similarity search only needs one or several fields (of
object/document)to be specified and the rest will be automatically caculated by lucene.
A QBE-like API should be used to make such query. You can specify the fields in such
query.
Please see discussion about this topic in the forum:
http://forum.hibernate.org/viewtopic.php?t=979692
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira