Question

does anybody know if there is a possibility to search for '-' using FTSearch?

Set col = db.ftsearch({ [services] = "-"}, 0)

dat requests does not work and instead says:

Notes error: Full text error; see log for more information ( [services] = "-")

Was it helpful?

Solution

Short answer is no.

The full text search treats most symbol characters as a white space. The exception is if the search term itself is wrapped in quotes.

The FT search engine also uses 3-gram for searching. This means that less then 3 characters will not return the results you expect. White spaces would be treated in that search, but only in the context of the found text.

For example: "ce " would find "space " but not "space." or "space" or "spaced".

If you are looking for the field that only contains "-", then a better solution is to create a view with a column containing that field value, and/or filter by that field being that value.

OTHER TIPS

Looks like you are trying to do a full text search in a view? You probably would get better response time and less server impact to use @Formula language if you are working with a view.

I try to keep away on doing full text searches on the entire database. You can use a search on a view collection for faster results. There is no restriction on how many views you can have in a db. There is a cost for everything though. There are so many little tricks that can be used to get better results. Please give us more details on what you are trying to do.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top