Lennart Regebro wrote: > I've been looking at the query possibilities in NXLucene, and it seems > to me that there is no way to group parts of query like, say: > > (path=/a/b/c and depth=3) or (uid=/a/b or uid=/a) > > I can make an ungroupd query, of course, which means > > (path=/a/b/c or uid=/a/b or uid=/a) and (depth=3) > > but that's not what I need, since that will apply the depth for the > whole query. > > I'd just like to confirm that before I start implementing another > complex solution to my problem (doing two separate queries and merging > them).
I don't remember if this kind if queries are possible or not.... George
added some stuffs some weeks ago on internal boolean queries and boolean
clauses. Has to be checked out but I believe it is not.
I would suggest you to implement the second search API on the server.
(i.e : def xmlrpc_search(self, query_str='')). It aims at taking as
parameter a native Lucene query with which you should be able to express
you complex queries more easily.
Or better, implementing grouped queries on the NXLucene query directly.
Merging queries is never something easy to optimize with search results
that are intersecting.
Cheers,
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-users mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/cps-users
