Keyword Analyzer with type text on integer fields

Hi,

I have a question regarding Full Text Search.

We currently have a field “cityId” in our documents that has a type of integer.
We would like to use the analyzer keyword and type text for the index, as recommended here:
https://blog.couchbase.com/full-text-search-indexing-best-practices/

Is it possible to search an integer field like this or do we have to convert the field in our documents to type string?

Thanks in advance!

Yes maxk,

Keyword analyser isn’t available for numeric type fields, hence converting the type to string/text in document would
be good idea. (unless you are going to perform numeric range kind of queries on that field in future)

Cheers!
Sreekanth

Keyword analyser isn’t available for numeric type fields

Yeah I figured.
Thank you!