-
Notifications
You must be signed in to change notification settings - Fork 2
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
Wondering if the simple query string query is set to search in all fields or in content field. #39
Comments
It is certainly not set to search in the |
I see now that the regular query string query actually seems to have features like the ones described in José's manual, i.e. the user can specify which fields to search by typing "field1:this field2:that" (searches for 'this' in field1 OR 'that' in field2). |
O.k. That means I might have taken the wrong decision when choosing simple query string query. Should this be changed? Or should some code be written to enable users to search in specified fields? Or, I think Berit mentioned this possibility: should we offer a button in the user interface to enable users to search in a specified field? (means writing extra code, right? |
Part of the confusion may come from the fact that the old search field actually suggested that the user enter As to what to do, I think this depends on what use cases we believe need to be supported and which ones not. Searching the whole query in all fields at the same time seems like an important use case to me, which most users will find convenient. At least Ortal-Paz Saar was very positive about this way of searching in a corpus. In fact, she said that she thought that if searching was in all fields, she probably didn't need much other functionality. (@JelmerVNuss do you recall the same?) A step upwards in terms of user control would be to apply the whole query only to one field or a subset of the fields. This is what would be achieved by providing a A second step upwards would be to enable users to search some parts of the query in one field and other parts in another field. This is what the So I think these are the options:
|
Options:
|
This issue is closed per #133. Julian implemented option 2. |
Default Field
edit
When not explicitly specifying the field to search on in the query string syntax, the index.query.default_field will be used to derive which field to search on. It defaults to _all field.
If the _all field is disabled and no fields are specified in the request`, the simple_query_string query will automatically attempt to determine the existing fields in the index’s mapping that are queryable, and perform the search on those fields.
The text was updated successfully, but these errors were encountered: