Select to view content in your preferred language

REST API & SearchText: Concatenate strings

1796
4
10-13-2011 09:49 PM
BernhardVockner
Deactivated User
Hi!

At http://sourceforge.net/apps/mediawiki/geoportal/index.php?title=REST_API_Syntax in the section "contains" it says that search is based on Lucene Index and therefore all operators from Lucene can be used. Is this also possible for REST API? If yes, what is the correct syntax? - I couldn't find any working example.

Thanks in advance for your help
Bernhard
0 Kudos
4 Replies
CliveReece
Esri Contributor
Look at http://sourceforge.net/apps/mediawiki/geoportal/index.php?title=Using_Lucene_Search_Text_Queries
Then launch your geoportal or http://gptogc.esri.com and try some searches using Lucene operators. After each search, you can view the equivalent REST API call by clicking on one of the links at the bottom of the search results page, after "See results through REST API".

For example, run a text search on: air AND quality. From the search results page, click on the HTML link after "See results through REST API". That takes you to the REST API equivalent page with f=html:
http://gptogc.esri.com/geoportal/rest/find/document?searchText=air%20AND%20quality&start=1&max=10

have fun
0 Kudos
BernhardVockner
Deactivated User
Thank you. Didn't recognize the possibility to view the search results as REST links is there by default. Makes things much easier for me. 😉

Kind regards and thank you for your help
Bernhard
0 Kudos
BernhardVockner
Deactivated User
As I'm additionally having a look at performing search based on ontologies another question arised: Is it planned to implement search based on ontologies across different languages in future versions of the Geoportal? For example, if I search for "water" I will also retrieve records containing the German term "Wasser", the French term "eau" etc. and the related terms in all of the languages (that may be ticked as checkboxes to clarify in which languages I want to get my result)?

Thanks again
Bernhard
0 Kudos
CliveReece
Esri Contributor
Bernhard,

I assume you've seen these links to integrating an Ontology service with Geoportal Server?

http://sourceforge.net/apps/mediawiki/geoportal/index.php?title=Enable_Search_Using_an_Ontology_Serv...
and
http://sourceforge.net/apps/mediawiki/geoportal/index.php?title=How_to_Search_with_an_Ontology_Servi...

The key for your goal would be to point to a language glossary ontology service.  Also, you might want to enhance the User Interface on Search to make it easier for people to use the "like|" functionality.
0 Kudos