I am looking out method for getting all matches in snippet.but I am getting incomplete set of result. I have set maxSnippetChars,maxMatches,perMatchTokens values to max. Structure of documents is an array of objects and I want path all matching object's property(Synopsis) which satisfy matching criteria. can you please help me out. I am using below code:-
.where(jsearch.byExample({"$query":{Synopsis:{"$word":"word","$case-sensitive":false}}}))
.slice(0, Number.MAX_SAFE_INTEGER)
.map({
snippet: {
maxSnippetChars:Number.MAX_SAFE_INTEGER,
maxMatches:Number.MAX_SAFE_INTEGER,
perMatchTokens: Number.MAX_SAFE_INTEGER
}, extract: {paths: ['/ID','/FullName']}
}
)
.result() ```