Daniel
06/15/2021, 11:53 AMKishore Nallan
06/15/2021, 12:05 PM#266
is fixed except for the observations in the last comment on the issue. We currently treat an optional field with null
value as if it was not part of the document at all, so there is no way to query them or sort on them, They will they be part of the document in the search response for the same reason.
As for #252
I will be happy to add that feature in the next couple of weeks.Daniel
06/15/2021, 12:13 PMKishore Nallan
06/15/2021, 12:14 PMDaniel
06/15/2021, 12:23 PM---
title: 'Follow the leader'
type: blog
updated_at: 1578924579
id: 4b1aa095-e0a1-4138-92e0-0dfc3e81697b
---
In the driver when I create the schema I just add my own id
field as a string, and I assume this overrides the default int ID that typesense uses? Because when I delete an entry on typesense I have to use the id
field… but it works when I use my string UUID too.
Just wondering if this might cause any problems or performance issues? Or if I need to find a way to create an int id for each entry.Kishore Nallan
06/15/2021, 12:24 PMI assume this overrides the default int ID that typesense uses?Yes, that's correct and perfectly valid. Even though Typesense generates auto incrementing ID when an
id
is not present, that ID is also a stringified number.Kishore Nallan
06/29/2021, 10:59 AM?highlight_fields=x,y,z
option which you can use to specify a list of fields that should be highlighted. So, you can even highlight fields that are not being queried on. Feature available on this Docker build: typesense/typesense:0.21.0.rc19
-- please try it out and let me know how it works.Daniel
06/30/2021, 3:37 PMexclude_fields=content
and highlight_fields=content
together in the request — it will still search and rank the results the same (with the content field) but will only exclude the field in the returned response. Using exclude_fields
doesn’t affect the search engine or ranking?Kishore Nallan
06/30/2021, 3:38 PMexclude_fields
and highlight_fields
are both applied only in the final presentation layer.Kishore Nallan
06/30/2021, 3:40 PM