Search “AND”, “OR”, “NOT” in the text of a document using OracleText

StackOverflow https://stackoverflow.com/questions/9544238

  •  04-12-2019
  •  | 
  •  

문제

OracleText has special meaning for these words. What if the text itself has them?

For example, d1.txt has "cats and dogs" and d2.txt has "cats". When searching for phrase "cats and dogs" i should get d1.txt only.

도움이 되었습니까?

해결책

You can look up for literal words by surrounding them with curly braces:

WHERE CONTAINS(column, '{cats and dogs}') > 0

In the reference books those are in the sections:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top