Skip to content
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

Are basic and advanced search compatible? #10

Open
m-mohr opened this issue Apr 19, 2024 · 3 comments
Open

Are basic and advanced search compatible? #10

m-mohr opened this issue Apr 19, 2024 · 3 comments

Comments

@m-mohr
Copy link
Collaborator

m-mohr commented Apr 19, 2024

Are basic and advanced search compatible? Can they be implemented at the same time?

I'm not sure yet because in basic OR needs to be separated by comma, but in advanced the comma is not mentioned at all. There space is used.

Also how to handle the differences in POST?

@rhysrevans3
Copy link
Contributor

@m-mohr sorry I've been away at a conference so haven't had a chance to look at this. But yes I think you're right in their current implementation they're not compatible. I think the simplest solution would be to add commas to the advanced search.

For POST could the advanced terms be separate into a list for example:

q = hello world AND foo, bar

q = [hello world, AND, foo, bar]

This would mean that AND & OR would need special treatment. We could then probably do away with"". But I'm not 100% sure how to handle ().

@m-mohr
Copy link
Collaborator Author

m-mohr commented Jun 12, 2024

This seems pretty weird. I think keeping them separate makes more sense. They can be in the same extension, but I think it could be made clear that they are not compatible. The basic one is compatible with Records, the more advanced one is an addition from STAC...

@rhysrevans3
Copy link
Contributor

Ah I didn't think of that as an option. That sounds like a great idea. Would this use a flag to differentiate between the two or use completely separate parameters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants