Skip to main content
added 242 characters in body
Source Link
ulrich
  • 1.2k
  • 9
  • 24

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qiq?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax[lucene query parser syntax][1] for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected.

If I just search for e.g. 'temperature wms', it returns all results that contain both, temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator.

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

UPDATE:

I tried to dig a bit into the search classes of GeoNetwork. According to LuceneQueryBuilder, boolean AND and OR operators should actually be supported. Not yet sure, why it does not take effect in the q-interface search. [1]: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected.

If I just search for e.g. 'temperature wms', it returns all results that contain both, temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator.

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/q?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the [lucene query parser syntax][1] for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected.

If I just search for e.g. 'temperature wms', it returns all results that contain both, temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator.

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

UPDATE:

I tried to dig a bit into the search classes of GeoNetwork. According to LuceneQueryBuilder, boolean AND and OR operators should actually be supported. Not yet sure, why it does not take effect in the q-interface search. [1]: https://lucene.apache.org/core/2_9_4/queryparsersyntax.html

added 6 characters in body
Source Link
ulrich
  • 1.2k
  • 9
  • 24

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected.

If I just search for e.g. 'temperature wms', it returns all results that contain both, temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator.

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected.

If I just search for e.g. 'temperature wms', it returns all results that contain temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator.

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected.

If I just search for e.g. 'temperature wms', it returns all results that contain both, temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator.

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

enhance readability
Source Link
ulrich
  • 1.2k
  • 9
  • 24

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected. 

If I just search for e.g. 'temperature wms', it returns all results that contain temperature and wms keywords. The lucene website on the contrary says, this would bework as the OR operator. 

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected. If I just search for e.g. 'temperature wms', it returns all results that contain temperature and wms keywords. The lucene website on the contrary says, this would be the OR operator. Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead, according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

On my GeoNetwork instance I can query search results by using the qi endpoint:

https://catalog-url/geonetwork/srv/eng/qi?any=temperature+wms&fast=index&sortOrder=&resultType=details&sortBy=relevance&from=1&to=10&facet.q=

I wonder, how I can use the lucene query parser syntax for customizing search results?

It is possible to use the ? or * operators for wildcard searches, but the other operators does not seem to work as expected. 

If I just search for e.g. 'temperature wms', it returns all results that contain temperature and wms keywords. The lucene website on the contrary says, this would work as the OR operator. 

Also, the AND operator leads to no search results in my case, where it should give the result from the 'temperature wms' example instead (i.e. only datasets containing both keywords), according to the lucene page.

Is there a way to use the lucene query syntax with this endpoint at all? Or any other way to customize search for datasets by using advanced query syntax?

Source Link
ulrich
  • 1.2k
  • 9
  • 24
Loading