This message was deleted.
# community-help
s
This message was deleted.
✅ 1
j
Meaning, you only want to index a subset of fields and use the others only for display purposes?
k
I mean for a field called say
raw_field
I want to index the value as is without tokenization
j
There's a flag called
pre_segmented_query: true
documented here: https://typesense.org/docs/0.25.0/api/search.html#query-parameters
Could you elaborate on your use-case though?
k
I have a field that is unique per doc, I would like to index it as is, so I can issue delete query to delete a particular document
I see
pre_segmented_query
, is there similar thing for index field that is applied during indexing phase?
j
Ah. If you set that unique value in a field called
id
when you send the document to Typesense, you can then reference that document by ID to do crud operations on it
pre_segmented_query
has historically only been useful for CJK locales - most likely not required for the use-case you mentioned above
k
I see, so you are saying engine teats
id
field specific such that it won't tokenize?
field type is string
j
Correct
k
good to know, how about if I have multiple such fields
I have in fact 3 fields per doc
1 is tenant id, 2nd is tenant company then record id is the last one
id is unique in tenant id and company id
j
You'll most likely be using them in
filter_by
which doesn't do any tokenization and will use a separate non-tokenized index to filter results
Tokenization only comes into the picture when you use the
q
(full text search) parameter
k
got it
thanks for the help Jason
👍 1