久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='lj1Zb'><tr id='lj1Zb'><dt id='lj1Zb'><q id='lj1Zb'><span id='lj1Zb'><b id='lj1Zb'><form id='lj1Zb'><ins id='lj1Zb'></ins><ul id='lj1Zb'></ul><sub id='lj1Zb'></sub></form><legend id='lj1Zb'></legend><bdo id='lj1Zb'><pre id='lj1Zb'><center id='lj1Zb'></center></pre></bdo></b><th id='lj1Zb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lj1Zb'><tfoot id='lj1Zb'></tfoot><dl id='lj1Zb'><fieldset id='lj1Zb'></fieldset></dl></div>

      • <bdo id='lj1Zb'></bdo><ul id='lj1Zb'></ul>

    1. <tfoot id='lj1Zb'></tfoot>

      <legend id='lj1Zb'><style id='lj1Zb'><dir id='lj1Zb'><q id='lj1Zb'></q></dir></style></legend>
    2. <small id='lj1Zb'></small><noframes id='lj1Zb'>

      1. Laravel 'like' 查詢與 MongoDB 連接

        Laravel #39;like#39; query with MongoDB connection(Laravel like 查詢與 MongoDB 連接)

          1. <small id='WF4jm'></small><noframes id='WF4jm'>

              <tbody id='WF4jm'></tbody>
              1. <legend id='WF4jm'><style id='WF4jm'><dir id='WF4jm'><q id='WF4jm'></q></dir></style></legend>
                <i id='WF4jm'><tr id='WF4jm'><dt id='WF4jm'><q id='WF4jm'><span id='WF4jm'><b id='WF4jm'><form id='WF4jm'><ins id='WF4jm'></ins><ul id='WF4jm'></ul><sub id='WF4jm'></sub></form><legend id='WF4jm'></legend><bdo id='WF4jm'><pre id='WF4jm'><center id='WF4jm'></center></pre></bdo></b><th id='WF4jm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WF4jm'><tfoot id='WF4jm'></tfoot><dl id='WF4jm'><fieldset id='WF4jm'></fieldset></dl></div>
                <tfoot id='WF4jm'></tfoot>
                  <bdo id='WF4jm'></bdo><ul id='WF4jm'></ul>
                  本文介紹了Laravel 'like' 查詢與 MongoDB 連接的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我在 laravel 'like' 查詢中遇到問(wèn)題.我在 Laravel 上有一個(gè) MIS,在 MongoDb 上有數(shù)據(jù)庫(kù).現(xiàn)在我的數(shù)據(jù)庫(kù)有一個(gè)名為 kw 的表,帶有像 cars%20in%20London 這樣的 urlencoded 關(guān)鍵字,現(xiàn)在我的查詢給出了 cars 的準(zhǔn)確結(jié)果>cars%20in%20London 但是當(dāng)我搜索 cars%20in 時(shí),我得到 0 個(gè)結(jié)果!這就是在查詢中使用 laravel 'like' 的方式,但 Mongo 使用/.m./形式,我該如何使其工作.這是我的模型函數(shù)

                  I am facing an issue in laravel 'like' query. I have a MIS on laravel with databases on MongoDb. Now my DB has a table named kw with urlencoded keywords like cars%20in%20London, Now my query gives accurate results for cars or cars%20in%20London but when I search cars%20in I get 0 results! This is how laravel 'like' is used in query but Mongo uses /.m./ form, How can I make this working. Here is my Model function

                  public static function selectKeywordIncomplete($keyword) {   
                      $search_volume_incomplete = searchVolume::where('kw','like','%'.$keyword.'%')->orwhere('kw','=',$keyword)->where('status','=',1)->paginate(20);
                      return $search_volume_incomplete; 
                  }
                  

                  推薦答案

                  因?yàn)樵?mongoDb 中沒(méi)有l(wèi)ike"這樣的東西,所以我尋找了 Mongodb regex,但是 mongoDB 的 laravel regexp 很有魅力,這是有效的查詢.http://jenssegers.be/projects/laravel-mongodb

                  well as there is no such thing as 'like' in mongoDb, I looked for Mongodb regex, but laravel regexp for mongoDB worked as a charm, here is the query which worked. http://jenssegers.be/projects/laravel-mongodb

                  $search_volume_unprocessed =searchVolume::where('kw','=',$keyword)->orwhere('kw','regexp',"/.*$keyword/i")->where('status','=',1)->分頁(yè)(20);

                  $search_volume_unprocessed = searchVolume::where('kw','=',$keyword)->orwhere('kw','regexp',"/.*$keyword/i")->where('status','=',1)->paginate(20);

                  這篇關(guān)于Laravel 'like' 查詢與 MongoDB 連接的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準(zhǔn)備好的語(yǔ)句amp;foreach 循環(huán))
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個(gè)服務(wù)器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無(wú)法識(shí)別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個(gè)參數(shù))
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結(jié)果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“l(fā)ocalhost的訪問(wèn)被拒絕)
                  <legend id='azCB8'><style id='azCB8'><dir id='azCB8'><q id='azCB8'></q></dir></style></legend>
                    <bdo id='azCB8'></bdo><ul id='azCB8'></ul>

                    <i id='azCB8'><tr id='azCB8'><dt id='azCB8'><q id='azCB8'><span id='azCB8'><b id='azCB8'><form id='azCB8'><ins id='azCB8'></ins><ul id='azCB8'></ul><sub id='azCB8'></sub></form><legend id='azCB8'></legend><bdo id='azCB8'><pre id='azCB8'><center id='azCB8'></center></pre></bdo></b><th id='azCB8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='azCB8'><tfoot id='azCB8'></tfoot><dl id='azCB8'><fieldset id='azCB8'></fieldset></dl></div>

                      • <tfoot id='azCB8'></tfoot>
                              <tbody id='azCB8'></tbody>

                          1. <small id='azCB8'></small><noframes id='azCB8'>

                            主站蜘蛛池模板: 日韩av视屏| 日韩成人在线播放 | 免费在线一区二区 | 久久久久国产一区二区三区四区 | 欧美亚洲国产一区二区三区 | 成人精品在线视频 | 黄色一级免费 | 亚洲天堂av网 | 精品一二| 久久99蜜桃综合影院免费观看 | 午夜二区 | 精品亚洲一区二区 | 欧美日韩在线视频一区 | 日本xx视频免费观看 | 夜夜爆操 | 亚洲国产成人精品女人久久久 | 国产精品一区在线观看 | 中文字幕av在线播放 | 久久亚洲国产精品日日av夜夜 | 国产精品久久久久影院色老大 | 久久久亚洲成人 | 国产一区在线免费观看 | 国产一区亚洲 | 妖精视频一区二区三区 | 亚洲精品一区二区三区中文字幕 | 日韩欧美国产成人一区二区 | 精品国产91乱码一区二区三区 | 日韩成人| 国产成人自拍av | 青青久草| 亚洲女人天堂网 | 久久1区| 亚洲精品欧美精品 | 中文天堂网 | 亚洲成人精品在线 | 成人精品一区二区户外勾搭野战 | 婷婷国产一区二区三区 | 免费观看黄 | 99精品视频在线 | 在线免费激情视频 | 午夜播放器在线观看 |