CDRH / api

Codenamed "Apium": An API to access all public Center for Digital Research in the Humanities resources
https://cdrhdev1.unl.edu/api_frontend
MIT License
3 stars 1 forks source link

How to specify q field(s) and possibly q type? #38

Closed jduss4 closed 7 years ago

jduss4 commented 7 years ago

If query should always be searched the same way (same type):

?q=water&qfield[]=text&qfield[]=annotations

Depending on results of #37 , the "type" of a query may have to be incorporated into this implementation.

Also, api_bridge and orchid are going to have to be altered depending on how this ends up looking

jduss4 commented 7 years ago

https://www.elastic.co/blog/multi-field-search-just-got-better

jduss4 commented 7 years ago

This syntax now works for q parameter:

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax

Example from above: ?q=water&qfield[]=text&qfield[]=annotations

will now look like

?q=text:water AND annotations:water