레코드를 가져 오는 데 다음 쿼리를 사용하고 있지만 위양성 결과를 가져 오는 중입니다.쿼리가 거짓 긍적으로 반환 됨
<cts:and-query xmlns:cts="http://marklogic.com/cts">
<cts:or-query>
<cts:element-value-query>
<cts:element>type</cts:element>
<cts:text xml:lang="en">article</cts:text>
</cts:element-value-query>
</cts:or-query>
<cts:element-query>
<cts:element>body</cts:element>
<cts:word-query>
<cts:text xml:lang="en">ace???</cts:text>
<cts:option>case-insensitive</cts:option>
<cts:option>diacritic-insensitive</cts:option>
<cts:option>punctuation-insensitive</cts:option>
<cts:option>whitespace-insensitive</cts:option>
<cts:option>stemmed</cts:option>
<cts:option>wildcarded</cts:option>
</cts:word-query>
</cts:element-query>
<cts:or-query>
<cts:element-range-query operator=">=">
<cts:element>expires-on</cts:element>
<cts:value xsi:type="xs:dateTime" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">2014-12-04T06:05:29.78Z</cts:value>
</cts:element-range-query>
<cts:not-query>
<cts:element-value-query>
<cts:element>expires-on</cts:element>
<cts:text xml:lang="en">*</cts:text>
<cts:option>wildcarded</cts:option>
</cts:element-value-query>
</cts:not-query>
</cts:or-query>
</cts:and-query>
</results>
위 쿼리는 와일드 카드 쿼리로 "ace"에서 시작하는 6 자 단어를 검색해야합니다. 그러나 "에이스"에서 시작하는 6 자 이상의 단어를 포함하는 결과도 얻고 있습니다. 다음
는우리가
- 단어가
- 빠른 구문 검색
- 단어의 위치를 검색
- 빠른 대소 문자 구분 검색
- 빠른 분음 부호를 구분 검색
- 빠른 요소의 단어를 사용하는 인덱스입니다 검색
- 요소 wo RD 위치
- 빠른 요소 구절은 "
- 세 문자 검색
- 빠른 요소 문자 검색
- 는 또한 우리가 '필터링되지 않은를 사용하는 와일드 카드 검색을 후행
- 빠른 요소 후행 와일드 카드 검색
검색 옵션을 사용하십시오.
도움이 될 것입니다.
감사합니다.
세부 정보를 업데이트했습니다. 한번 봐주세요. –
아마도 요소 쿼리에 단어 쿼리를 포함시키는 방식 때문일 것입니다. 후행 와일드 카드 위치 색인을 추가 할 수 있으며이를 수정할 수도 있지만 대신 쿼리를 최적화 할 수 있다면 더 좋습니다. – mblakele
제안에 따라 쿼리를 다음 쿼리로 변경했습니다. cts : element-word-query (xs : QName ("body"), ("ace ??"), ("대소 문자를 구분하지 않음" 1) 나는 많은 단어를 가지고 있지만 쿼리는 어떤 결과도 가져 오지 않습니다. 검색어와 일치합니다. –