wst
wst

Reputation: 11771

Phrase search-optimal index settings

The documentation for word positions and fast phrase searches both indicate improvements with phrase searches. Where do they overlap? If I enable fast phrase searches and have no intention of using cts:near-query, is word positions redundant for simply optimizing phrase searching?

Upvotes: 2

Views: 61

Answers (1)

mholstege
mholstege

Reputation: 4912

fast phrase searches will give you accurate results for two-word phrases, and more accurate results for longer phrases than just word searches. word positions will give you accurate results for longer phrases too. The trade off is that looking at positions takes time and memory, so if you mostly have two-word phrases, fast phrase searches is better, as it becomes a single term lookup.

Upvotes: 2

Related Questions