I need to run some searches in Tridion to find components which have 2 or more keywords. The GUI only allows me to specify one. The requirement is to store the search as a virtual folder so it can be used by content editors.
I was hoping to achieve this by creating a custom Lucene query, like this:
MyField:hello AND MyOtherField:world
However, this gives the error 'undefined field MyField'.
I did some digging around and found that all the content of an item is stored in one Lucene field called CatchAllXml. So this query works fine:
CatchAllXml:hello AND CatchAllXml:world
But obviously, this will return any item which contains the words 'hello' and 'world', regardless of the field. It is in fact synonymous to 'hello AND world'.
Does anyone know if it is possible to configure Tridion content fields as separate Lucene fields? Or is there another solution to this issue?