Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1117

FTS does not perform pattern matching

$
0
0

I am using Couchbase Lite 3.0.2 version, ASP .Net Core 6

I have the below query and FTS index. But am getting extact match instead of all the words having the searchString.

var indexFields = new string { “OrderNUmber”, “Category” };
_couchbaseRepository.CreateFTSIndex(“FTSIndex”, indexFields);

        var queryStr = "SELECT * FROM buck" +
                       "WHERE type='doc' AND ownerId = '" + id.ToString() + "' " +
                       "AND MATCH(FTSIndex, \"*" + searchString + "*\") " +
                       "ORDER BY OrderNumber";

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1117

Trending Articles