(no subject) [message #687256] |
Wed, 25 May 2011 17:46 |
saurav sarkar Messages: 428 Registered: July 2009 |
Senior Member |
|
|
Hi Benedikt,
Yes you are right ideally the way is to load the resources, index it and then unload the resources.But the Index should be only updated inside the UpdateCommand
Yes through QueryContext's resource scope you can specify the scope under which you want your query to perform.For example you know the results will come from resource b or you only want to query resource b you can pass that particular resource in the resource scope.
And i am sorry i mistook the QueryCommand.I confused the Index Query with the Query2 query.So this querycommand is actually to query the indexes.As you know three kind of Index queries are supported.ResourceQuery, EObjectQuery and EReferenceQuery.So each of these queries are executed inside the QueryCommand.
An example of resource query would be when you want to fetch all the resources indexed in the Index as you have provided in your code.
No it wont create any problems if Model Query1 is pre-installed.Query2 is independent of Query1.
The Query2 APIs are very stable.As you can see almost all the APIs and scenarios are tested through JUnits.
Please let me know if you have further questions.
Cheers,
Saurav
--
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
|
|
|
Powered by
FUDForum. Page generated in 0.03123 seconds