SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-400
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shay Banon
Reporter: Maurice Nicholson
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Compass

"More like this" feature for object instances

Created: 13/May/07 08:18 AM   Updated: 28/Jul/07 08:33 AM
Component/s: Compass::Core
Affects Version/s: None
Fix Version/s: 1.2 M3


 Description  « Hide
As discussed here http://forums.opensymphony.com/thread.jspa?threadID=81984&tstart=0 Compass could find similar objects for a given object, based on term vectors, for example.

I think this makes sense as a CompassQuery, built by CompassQueryBuilder method, eg (pseudo code):

query = CompassQueryBuilder.similar(myObject)
hits = query.hits()

then hits.data is a list of similar objects, ordered by most similar first.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 28/Jul/07 08:30 AM
Support for more like this has been added. Example usage:

CompassQuery query = session.queryBuilder().moreLikeThis("author", "1").toQuery();


Shay Banon added a comment - 28/Jul/07 08:33 AM
Closing this issue. If there are any usability issues, please comment ...