Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[smila-user] Searching on annotations

As I have now reached the point of producing annotations on attributes
(specifically annotations on the unique literal of an attribute), I am
now trying to do a search on them with LuceneSearchService.
The search on an attribute is fine: I set the "query" parameter and
the LuceneSearchService.SEARCH_ANNOTATION_QUERY_ATTRIBUTE to the name
of the attribute I want to search on. Maybe there is a clever way to
do an OR search on all the various attributes?
I have no clue however on how to search on annotations, since in the
Mappings.xml file I can specify only <Attribute> and <Attachment> tags
(the schema said so). So are the annotation saved in the storage? And
how can I specify to query them?
Thanks for any help.

-- 
Giorgio Sironi
Piccolo Principe & Web Engineer
http://giorgiosironi.blogspot.com
http://twitter.com/giorgiosironi


Back to the top