Creating efficient searches for persistent highlighting
Creating efficient searches improves the performance of persistent highlighting, whether you're working with a Terms Search or Highlight Fields. Use the following guidelines to create efficient searches.
Using terms search
Avoid the following when writing searches for persistent highlighting:
- Do not use "AND" or "OR" connectors. Persistent highlighting looks for the exact phrase, trade and complete, instead of the word, trade, and the word, complete.
- Proximity, fuzziness, and stemming logic cannot be used in a Terms Search. Consider using Highlight Fields to access these search features as described below. The system ignores the dtSearch syntax. Terms receive no highlight if you use these advanced searching features. The search terms report Count column still lists the number of matching terms. For example:
- The search term, oil w/10 water, searches for the exact phrase oil w/10 water.
- If you enter the term apply~ as a search term, persistent highlighting technology looks for the term apply followed by any special character.
- Avoid using terms with a large number of hits per document. Persistent highlighting highlights each hit. For example, it takes longer to load a Word document containing 1,000 instances of a single term.
- Avoid using terms that only occur once in a document. Use search terms reports for those terms instead.
- Avoid long lists of numbers, such as Bates numbers or account numbers.
- Do not use duplicate terms.
Use the following techniques to optimize your searches:
- Use the dtSearch Dictionary to identify variations of a term instead of using wildcards.
- Identify which terms should be in the highlight set and which terms are not necessary.
- You may want to avoid highlighting terms with high word counts.
Note: To highlight terms using objects, create a fixed-length text field for your object called Highlight Colors. You can enter color-coding in this field using the format: [highlight color];[text color].
Using highlight fields
Consider the following guidelines when creating or adding terms using Search Terms Reports as the highlight fields source: