@@ -1597,46 +1597,12 @@ public function orSearchNotQueryString(mixed $query, mixed $columns = null, $opt
15971597 return $ this ->_buildQueryStringWheres ($ columns , $ query , 'or ' , true , $ options );
15981598 }
15991599
1600- /**
1601- * Add a 'simple_query_string' statement to query
1602- *
1603- * @throws Exception
1604- */
1605- public function searchSimpleQueryString (mixed $ query , mixed $ columns = null , $ options = []): self
1606- {
1607- return $ this ->_buildQueryStringWheres ($ columns , $ query , 'and ' , false , $ options , 'SimpleQueryString ' );
1608- }
1609-
1610- /**
1611- * @throws Exception
1612- */
1613- public function orSearchSimpleQueryString (mixed $ query , mixed $ columns = null , $ options = []): self
1614- {
1615- return $ this ->_buildQueryStringWheres ($ columns , $ query , 'or ' , false , $ options , 'SimpleQueryString ' );
1616- }
1617-
16181600 /**
16191601 * @throws Exception
16201602 */
1621- public function searchNotSimpleQueryString ( mixed $ query , mixed $ columns = null , $ options = [] ): self
1603+ private function _buildQueryStringWheres ( $ columns , $ value , $ boolean , $ not , $ options ): self
16221604 {
1623- return $ this ->_buildQueryStringWheres ($ columns , $ query , 'and ' , true , $ options , 'SimpleQueryString ' );
1624- }
1625-
1626- /**
1627- * @throws Exception
1628- */
1629- public function orSearchNotSimpleQueryString (mixed $ query , mixed $ columns = null , $ options = []): self
1630- {
1631- return $ this ->_buildQueryStringWheres ($ columns , $ query , 'or ' , true , $ options , 'SimpleQueryString ' );
1632- }
1633-
1634- /**
1635- * @throws Exception
1636- */
1637- private function _buildQueryStringWheres ($ columns , $ value , $ boolean , $ not , $ options , $ type = 'QueryString ' ): self
1638- {
1639-
1605+ $ type = 'QueryString ' ;
16401606 [$ columns , $ options ] = $ this ->extractSearch ($ columns , $ options , 'querystring ' );
16411607 $ options = $ this ->setOptions ($ options , 'querystring ' )->toArray ();
16421608 $ this ->wheres [] = compact ('columns ' , 'value ' , 'type ' , 'boolean ' , 'not ' , 'options ' );
0 commit comments