If the database has any wildcard indexes enabled ( three character searches, two character searches, one character searches, or trailing wildcard searches) and if the query text contains either of the wildcard characters ? or *, then the wildcard characters are treated as wildcards and the search is performed "wildcarded". If neither "wildcarded" nor "unwildcarded" is specified in the cts:query expression, the database configuration and query text determine wildcarding.If "wildcarded" is explicitly specified in the cts:query expression, then the search is performed as a wildcard search.A value search for m* * will match the value (because m* matches the first word and * matches everything after it). For example, m* will match the value meet me there for a value lexicon search (for example, cts:element-value-match) but will not match the value for a value query search (for example, cts:element-value-query), because the value query only matches the one word. If the * wildcard is specified with a non-wildcard character, it will match in value lexicon queries (for example, cts:element-value-match), but will not match in value queries (for example, cts:element-value-query).For example, * will match the value meet me there. If the * wildcard is specified by itself in a value query (for example, cts:element-value-query, cts:element-value-match), it matches everything (spanning word breaks).For example, m*th* will match m e th od but not m eet th ere. Spaces are used as word breaks, and wildcard matching only works within a single word.For example, m*? will match words starting with m with three or more characters. There can be more than one wildcard in a single search term or phrase, and the two wildcard characters can be used in combination.The following are the basic rules for wildcard searches in MarkLogic Server: Semaphore AI Technology Create and manage metadata and transform information into meaningful, actionable intelligence with Semaphore, our no-code metadata engine.A database, search engine, data integration tool, and more, all rolled into one. MarkLogic Server Unlock value from complex data and power new opportunities with MarkLogic Server.MarkLogic Data Platform Simplify your most complex data challenges, unlock value, and achieve data agility with the MarkLogic Data Platform.
0 Comments
Leave a Reply. |