On Wed, 14 Jan 2015 09:43:14 -0800, Rahul Gupta <[email protected]>
wrote:
> I need to run a cts:element-word-query on documents through wildcard
> search. I already have wildcard searched on for 3 character as well as
> created an index for the element. When I am running unfiltered search
> over this query, it is returning me the false positive results as well.
> Can you please tell me what should be done in order to get exact results
> without any performance issue?
>
> I know I can use the filtered search but that is giving performance
> issues. Please suggest whether by creating any other index, it can be
> solved?
>
> Eg:
> cts:search(fn:doc(),
> cts:element-word-query(xs:QName("xyz"), Sta*, ("wildcarded")),
> "unfiltered")
I assume the false positives are from words outside of the element, yes?
Turn on the element wildcard indexes:
fast-element-trailing-wildcard-searches (which ought to be enough for this
particular query) and if necessary fast-element-character-searches and a
codepoint lexicon on the element you care about.
//Mary
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general