#community-help

Querying Non-indexed Fields

TLDR Blend asked about performing queries on non-indexed fields. John and Jason confirmed this is not possible, but unindexed fields can still be included in the document for display data.

Powered by Struct AI
5
9mo
Solved
Join the chat
Dec 12, 2022 (9 months ago)
Blend
Photo of md5-94c93df7325e8fde185c76c659656ee9
Blend
06:58 PM
may be a dumb question but, if we have a field that is not indexed
does it mean we cannot perform queries with it, or the queries will be slow?
John
Photo of md5-21545f1facb7836c149bc4c70752bd2b
John
07:05 PM
You cannot, Typesense keeps everything in memory afaik
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:06 PM
> if we have a field that is not indexed does it mean we cannot perform queries with it
That’s correct.
07:07
Jason
07:07 PM
You can still include unindexed fields in the document, they’ll be stored on disk and returned when the document is a hit for a search query
07:07
Jason
07:07 PM
This is typically useful when you want to show additional information in your search results to the user (display data). For eg, image URLs for a search result