I use Oracle text to search in the sentence case. I want scoring to be like counting only discrete occurrences,
Example: My query ( dog cat table ) If he finds the term “dog”, he should count 1, even if the sentence has more than one “dog” term. If he found a "dog cat", he should count 2 ... etc.
I used this query, but it gives me 51 if it finds two conditions. I need to accumulate discrete occurrences. Therefore, I want to redefine the behavior of the Oracle Text count algorithm.
select sentence_id ,score(1) as sc , isn ,sentence_length from plag_docsentences where contains(PROCESSED_TEXT,'DEFINESCORE(dog, DISCRETE*.01) ,DEFINESCORE(cat, DISCRETE*.01)' ,1)>0 order by score(1) desc
source share