@@ -107,7 +107,31 @@ describe('Document qbe test', function(){
107107 collections : [ 'matchList' ] ,
108108 contentType : 'application/xml' ,
109109 content : '<Employee><firstname>John</firstname><id>0081</id></Employee>'
110- } ) .
110+ } , {
111+ uri : '/test/query/matchList/doc8.json' ,
112+ id : '33f028a3-351e-485a-928a-a45885a964b3' ,
113+ type : 'person' ,
114+ subtype : [ 'customer' ] ,
115+ schema : [
116+ 'person_1.0' ,
117+ 'customer_1.2'
118+ ] ,
119+ content : {
120+ name : 'Josh Bowers' ,
121+ gender : 'male' ,
122+ customerSince : '2003-03-03Z' ,
123+ reviewerRank : 33333 ,
124+ vipCustomer : null ,
125+ topSpends : 300000 ,
126+ lastVisits : '2013-03-03' ,
127+ favoriteFoods : 'steak PIZZA-PIE tacos cake cookies yum8me' ,
128+ popularity1 : 'Awesome' ,
129+ nicknames : [
130+ 'Joshua' ,
131+ 'JaJa' ,
132+ 'Math Wizard' ,
133+ 'Taco'
134+ ] } } ) .
111135 result ( function ( response ) { done ( ) ; } , done ) ;
112136 } ) ;
113137
@@ -387,6 +411,21 @@ describe('Document qbe test', function(){
387411 done ( ) ;
388412 } , done ) ;
389413 } ) ;
414+ it ( 'should do qbe bug38619' , function ( done ) {
415+ db . documents . query (
416+ q . where (
417+ q . byExample ( {
418+ $word : 'awesome' ,
419+ $stemmed : false
420+ } )
421+ )
422+ ) . result ( function ( response ) {
423+ // console.log(response);
424+ response . length . should . equal ( 1 ) ;
425+ response [ 0 ] . content . popularity1 . should . equal ( 'Awesome' ) ;
426+ done ( ) ;
427+ } , done ) ;
428+ } ) ;
390429
391430it ( 'should delete all documents' , function ( done ) {
392431 dbAdmin . documents . removeAll ( {
0 commit comments