blob: 1ae5fe967585eed52912383610e84299ccb180ab [file] [log] [blame]
salsubaieebb167912013-12-21 12:55:52 -08001/*
2 * Description : Notice the query hint to avoid using any secondary index to evaluate the predicate in the where clause
3 * Expected Res : Success
4 * Date : 21th December 2013
5 */
6
7drop dataverse test if exists;
8create dataverse test;
9use dataverse test;
10
11create type DBLPType as closed {
12 id: int32,
13 dblpid: string,
14 title: string,
15 authors: string,
16 misc: string
17}
18
19create dataset DBLP(DBLPType) primary key id;
20
21create index ngram_index on DBLP(title) type ngram(3);
22
23write output to nc1:"rttest/inverted-index-basic_ngram-contains.adm";
24
25for $o in dataset('DBLP')
salsubaieedf89fbc2013-12-21 19:51:42 -080026where /*+ skip-index */ contains($o.title, "Multimedia")
salsubaieebb167912013-12-21 12:55:52 -080027order by $o.id
28return $o