|
Hello, I am already testing with your JSR283 QueryObjectModel implementation and have a question regarding the proper usage. The XPATH query, which I try to implement with the JQOM is: //element(*,nt:file)[jcr:contains(jcr:content,'Test')] Internally it results in a Lucene query: +(_:PROPERTIES:3:primaryType?4:file _:PROPERTIES:3:primaryType?12:file _:PROPERTIES:3:primaryType?12:symLink) +ParentAxisQuery while the ParentAxisQuery is: +_:LABEL:3:content +_:FULLTEXT:test With this I get some results. Now I am trying to build this same query
with the QueryObjectModel. What I do is:
qf.createQuery(qf.selector("nt:file"), qf.fullTextSearch(null, 'Test'), null, null); The resulting query looks like this:
It looks like in the current implementation Jackrabbit is not searching
through the subtree nodes, but anyway this will be implementation
specific.+(_:PROPERTIES:3:primaryType?4:file _:PROPERTIES:3:primaryType?12:file _:PROPERTIES:3:primaryType?12:symLink) +_:FULLTEXT:test With this I get no results. The JSR-283 documentation says for
FullTextSearch:
What is the proper way to create a query with the JQOM, which will run on all implementations and where the FullTextSearch will look in all the subtree nodes? I would also like to extend this query by looking in the filename, so I would always like to return nt:file nodes. Regards, Benjamin |
- QueryObjectModel: FulltextSearch on subnodes Benjamin Papez
- Re: QueryObjectModel: FulltextSearch on subnodes Marcel Reutegger
- Re: QueryObjectModel: FulltextSearch on subnodes Benjamin Papez
- Re: QueryObjectModel: FulltextSearch on subn... Marcel Reutegger
- QueryObjectModel: FulltextSearch on subnodes Benjamin Papez
