Add support for projection (ie read the data from the index only)

Description

None

Environment

None

Activity

Show:
Emmanuel Bernard
May 17, 2007, 9:20 PM

fullTextQuery.setProjection("id", "summary", "author.name");
List<Object[]> result = (List<Object[]>) fullTextQuery.list();

shareef shaik
February 23, 2010, 11:14 AM

Dear Emmanuel
I have a problem working with projections. consider the following scenario,
Parent(Long id, Set<Child> children)
Child(EmbeddedId(Long id, Integer versionNo), Parent parent)
Now, I have indexed Parent and Child is contained in it. When I tried to apply projections on Child columns, I am not able to get the values. It works fine for associations and collections with a single primary key, fails only for the composite key cases. Please comment on the same.
Due to copy write issues, I cannot share the log, or the code.

Assignee

Emmanuel Bernard

Reporter

Emmanuel Bernard

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure