Lucene query to get spatial data

Hi,

I’m trying to configure a subportal based on geo2france.fr using a Lucene query.
The goal is to retrieve only the data that has a spatial component. What query should I use?

Subsidiary question: Is there a resource that lists all possible Lucene queries?

Vincent

Would something like this work: `-cl_hierarchyLevel.key:nonGeographicDataset`?

Here is an equivalent query on the GeoNetwork instance

I would also be in favour of a Lucene queries ‘cookbook’ or something equivalent in addition to the official resource: Apache Lucene - Query Parser Syntax .

Thank you very much, it works well!

1 Like

Hello camptocamp team @LHBruneton-C2C @jahow , what do you think of the idea of ​​creating a web page here https://geonetwork.github.io about Lucene queries, like mentioned by @maxcollombin ?

I think that would be great and long overdue, especially with the new use cases showing up for the portals. I cannot guarantee that we at Camptocamp have the capacity for this in the near future, but we’ll try our best :slight_smile: