Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Some questions about queries #143

Open
PabloCastellano opened this issue Sep 9, 2020 · 1 comment
Open

Some questions about queries #143

PabloCastellano opened this issue Sep 9, 2020 · 1 comment

Comments

@PabloCastellano
Copy link
Contributor

PabloCastellano commented Sep 9, 2020

Hello. I'm testing blast to check if it could replace elasticsearch for my use case.

However I find the examples very brief and don't understand the following query example.

{
"search_request": {
"query": {
"query": "+_all:search"
},
"size": 10,
"from": 0,
"fields": [
"*"
],
"sort": [
"-_score",
"_id",
"-timestamp"

After reading this example, I have the following questions.

  • What does _all means in the query field?
  • What does the plus sign before _all means?
  • How can I search inside a particular field?
  • What happens if I index a type that is not defined in the mapping?
  • How can I search and filter by the _type field?

Can you give me some pointers? I'll be happy to contribute by documenting these answers.

@fahmifan
Copy link

AFAIK, you could check blevesearch docs https://blevesearch.com/docs/Query-String-Query/,
from your example, +_all:search it will match string search to all fields in the mapping.

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

No branches or pull requests

2 participants