Hum interesting,
Which test fails exactly?
I just jave to replace the getBody annotation?
On 12 juin 07, at 17:12, Hardy Ferentschik wrote:
Hi Emmanuel,
I was just looking at
http://opensource.atlassian.com/projects/
hibernate/browse/HSEARCH-15. I attached a very simple addition to
FullTextQuery allowing to set a Filter. Maybe you can apply the
patch at some stage.
My questions, however, is regarding
org.hibernate.search.test.query.Book. I added a new field
publicationDate in order to
test the filtering. At the same time I tried to remove the
deprecated HSearch annoatations. I tried to replace @Unstored on
getBody() with @Field(index=Index.TOKENIZED, store=Store.NO), but
then one of the test failed:
org.hibernate.search.SearchException: Projecting an unstored field:
body
at org.hibernate.search.engine.DocumentBuilder.populateResult
(DocumentBuilder.java:592)
...
The exception makes sense, but why was the test working before?
Funny enough @Field(index=Index.TOKENIZED, store=Store.YES) doesn't
work either.
Cheers
Hardy
--
Hartmut Ferentschik
Ekholmsv.339 ,1, 127 45 Skärholmen, Sweden
Phone: +46 855 923 676 (h); +46 704 225 097 (m)