-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ogcapi records search #116
Merged
davidblasby
merged 15 commits into
geonetwork:main
from
davidblasby:_ogcapi_records_search
Oct 22, 2024
Merged
Ogcapi records search #116
davidblasby
merged 15 commits into
geonetwork:main
from
davidblasby:_ogcapi_records_search
Oct 22, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@josegar74 @fxprunayre - please review before I make it non-draft. Thanks a lot! |
Quality Gate failedFailed conditions |
@josegar74 @fxprunayre - I am planning to merge this at the end of the week! |
@josegar74 @fxprunayre - no one has responded, so I will merge tomorrow evening (european time). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am doing improvement for Searching.
queryables2.mp4
queryables
endpoint (according to spec):queryables.json
2 Server side processing of the queryables for "smarter" handling:
QueryToElastic.java
as well as the documentation inqueryables.json
Summary of changes;
I've added
queryables.json
(and some processing of it -QueryablesService
QueryablesController
QueryToElastic
).queryables.json
fileI introduced a
Query
object instead of just moving around individual partsI updated the checkstyle settings so you can add @SuppressWarnings.
q
, andx-ogc-role
that don't start with 2+ lower-case lettersgoogle_checks.xml
(copied togn_checks.xml
)How to use Queryables:
Queryables are pretty easy to use;
get the queryables definition from the endpoint
/collections/<collectionId>/queryables
use a query like this;
* searches in the
resourceTitleObject
elastic fields (see details inqueryables.json
)* searches in the
resourceTemporalDateRange
elastic field (see details inqueryables.json
)* searches a large number of fields inside the
allKeyworeds
elastic field (see details inqueryables.json
)See the OGCAPI documentation (also in
queryables.json
) for how to format date range queries.