function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PrachiPrachi 

Document Search with SOSL giving wrong results

Hi,

 

I'm trying to search documents based on search text provided by user.

However, the search results contain some documents that do not contain the search text.

This happens in case of exact search too.

Can anybody help me regarding this.

This is the query in my class:

 

List<List<Document>> searchList = [FIND :searchText IN ALL FIELDS RETURNING Document];

 

searchText - searchString entered by user.

 

Thanks in advance.