CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2023-11-20
by Bhumit Antala

Original Post

Original - Posted on 2023-11-20
by Bhumit Antala



            
Present in both answers; Present only in the new answer; Present only in the old answer;

If you don't want to use services like algolia and typesense and you don't need any ai prebuilt tools then i have one simple solution using list.
For this solution you have to add all words of your content what you want to search in list by splitting with space and keywords like the,a,is,with,etc unnecessary words and don't pass string in where query use splitted list with spaces and now you have to search from flutter firebase sdk like below 👇 code
_carscollection.where('wordlistfieldname', arrayContainsAny: carsearchquerylist);

Note: change wordlistfieldname with your array field name in firestore document, and use splitted list of search query string and pass that list in arraycontainsany
If you don't want to use services like algolia and typesense and you don't need any ai prebuilt tools then i have one simple solution using list.
For this solution you have to add all words of your content what you want to search in list by splitting with space and keywords like the,a,is,with,etc unnecessary words and don't pass string in where query use splitted list with spaces and now you have to search from flutter firebase sdk like below 👇 code
_carscollection.where('wordlistfieldname', arrayContainsAny: carsearchquerylist);

Note: change wordlistfieldname with your array field name in firestore document, and use splitted list of search query string and pass that list in arraycontainsany

        
Present in both answers; Present only in the new answer; Present only in the old answer;