Hi, I was wondering how to set fields as ‘filter o...
# community-help
j
Hi, I was wondering how to set fields as ‘filter only’ without need to query on it. I cannot see any filter parameter, only facet which I think won’t be appropriate in my use case, I would be grateful for any help.
j
All indexed fields specified in the schema are filterable and searchable by default. You can then control which exact fields should be filtered on or searched on using the query_by or filter_by search params
j
Okay, I was a little confused by the fact that after adding fields without additional parameters, I have an option in the dashboard to query by on them, but I don’t have an option to filter by on them
message has been deleted
j
That particular search dashboard uses vue-instantsearch which makes the assumption that all filterable fields are faceted (an Algolia quirk). Which is why that dropdown only shows faceted fields. But you should be able to use filter_by in the additional search parameters field on that page, to filter on non faceted fields
j
Okay and I understand that it is not possible to disable query on specific fields, right?
j
You can.. Only the fields specified in
query_by
will be searched on
j
Yes, but this is not what I meant, my question was about disabling it completely in the schema to increase efficiency
j
Ah in that case, you can just leave it from the schema
You can still send unindexed fields in the docs, even if it's not in the schema.
Those will just be stored on disk, and returned when the doc is a hit
j
Okay, I get it now, thank you for explanation!
👍 1