Thank you !!!! Exactly what I was looking for. I did try the wildcard search and it worked, but it was slow. I had all those extra index settings turned off.
I'm re-indexing my DB right now. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Danny Sokolsky Sent: Tuesday, November 24, 2009 6:19 PM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] RE: Prefix query That is a wildcard query. Something like: cts:word-query("Cod*", "wildcarded") You should have wildcard indexes enabled in your database for this. For most applications, an excellent set of wildcard indexes are (in addition to the default set of indexes): three character search word lexicon (with the collation http://marklogic.com/collation/codepoint) optionally: word searches (this will make index resolution for wildcard queries more accurate) Additional good things: word positions three character word positions This set of indexes will give you very good wildcard performance. See the " Understanding and Using Wildcard Searches" Search Developer's Guide for more details. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Lee, David Sent: Tuesday, November 24, 2009 3:03 PM To: [email protected] Subject: [MarkLogic Dev General] Prefix query Whats the right terminology or api for ML for a "prefix query" ? I want to search for "Cod" and have it match "Codeine" but NOT "nocode" I'm using cts:word-query() right now ... is that even the right one ? Is this a "Stemmed" or a "Wildcard" query ? Thanks for any suggestions ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected] 812-482-5224 _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
