Subportal configuration based on Lucene query

Hi,

I’m trying to configure a subportal based on geocat.ch using the following Lucene query:

(groupOwner:20 AND -cl_status.key:historicalArchive AND -cl_status.key:obsolete) OR (cl_geodataType.key:referenceGeodata AND groupOwner:(6 OR 23))

However, only the left-hand side of the OR clause seems to be applied. Both sub-expressions work correctly when tested individually.

Has anyone encountered this issue or could suggest why the second branch might be ignored? Any guidance would be greatly appreciated.

Thanks for your help!

Hey :waving_hand:

Your right-hand side seems to contain some stray -, try

i.e. without the - before cl_status.key

All the best,

Elena

If that doesn’t work, try to wrap the whole thing in ()

i.e. ((groupOwner:20 AND cl_status.key:historicalArchive AND cl_status.key:obsolete) OR (cl_geodataType.key:referenceGeodata AND groupOwner:(6 OR 23)))

It finally works!

Thank you very much!

The bracket part is a bit subtle, though.

As for the stray, I’ll keep them because they correspond to ‘NOT’.

1 Like

I’m glad it works! :smiley:

1 Like