[opencms-dev] solr search returns no results

DZoltan dzoltan at gmail.com
Thu Jan 8 14:44:36 CET 2015


Hello,
Running OpenCms 9.0.1,
I defined a resource type in a module and everything works - I can
create new structured contents with this type and render it with the
formatter.
I have a detail page that display the resource type and it is working fine.
I am trying to use a dynamic function with a collector to display all
contents of this type using solr query and the query returns no
results.
The same query but for ddarticle type of the dev-demo site works and I
can see the articles in the page I created for the collector.
what is missing?

this is how I query:
<c:set var="createPath">/.content/my-type/t_%(number:5).xml</c:set>
<cms:contentload collector="byQuery"
param="fq=type:my-type&sort=lastmodified
desc|createPath=${createPath}" preload="true" > ....
</cms:contentload>

again - changing to type:ddarticle makes the query work and I can
create new articles from the page itself using the + button in edit
mode.

Thanks for the help



More information about the opencms-dev mailing list