We are sending the folowing query:
where field is an optional label with no value. But, this query is not optimal (it uses postprocessor).
We’ve notices this one uses postprocessor too:
But this one, not:
/schema/field [/field=" "] (blank space)
The problem is that last one doesn’t return correct results (label has no value).
Does anyone how to make and optimal and correct query under these circustamces?
could you please tell us which version of Tamino you are using, and post the schema?
My first thought is that using a Structure Index is the right solution for this.
(Please see Harald’s posting here.)
As far as I understand this XPath stuff, filter [/field] means that you select documents with root element field? Is that really what you want?
I can only guess what your query is supposed to mean: my guess is:
A predicate like [/field=""] doesn’t depend on the current node, and is therefore almost always wrong.