AnsweredAssumed Answered

Problems with the lucene search

Question asked by djimenez on Jul 24, 2007
Latest reply on Jul 24, 2007 by andy
Hi all,

I need to make a lucene query to find an list of nodes, and I need sort this list by fields as the creation date, modified date, … in descending and ascending order. I'm using freemarker to make a webscript that list information of the nodes with different criterion.

Now I can sort by the name property: <#assign docs=companyhome.childrenByLuceneSearch[queryString]?sort_by('name') > but when I sort by creation date, property "created" it is produce the next error:
freemarker.template.TemplateModelException: ?sort_by(…) failed: The "created" subvariable was not found.

Also I want to know How can it limit the result size of the lucene query? I see that in the config file it is possible, there are other possibility using webscripts.

Thanks,

David

Outcomes