searching a vocabulary

Hello, looking at the APIs for querying a directory, it looks like the ability to search on exact match is supported through org.nuxeo.ecm.directory. My question is: is there an alternate way to query directories? Specifically: say I have a vocabulary with 5 entries, ID values 1,2,3,4, & 5. Say I want to load from an incoming data set containing IDs 1,2,3,4,5,6 & 7. What I'm looking for is some way in Java to say:

select max(id) from my-vocabulary where id < 7. The query would return 5. Then I would know that I only need to load 6 and 7 from the incoming data set. Thank you.

0 votes

1 answers

827 views

ANSWER



No, directories don't provide such extended query mechanisms.

You're probably better off doing your query directly using JDBC, if you have a SQL directory.

0 votes