SOLR implementation of SQL query statements

Source: Internet
Author: User
Tags solr


Http://www.aboutyun.com/thread-7742-1-1.html


//query Http://localhost/order/select?q=item_main_title: Australia &wt=json& indent=true&fl=id,order_number,src,src_orderhttp://localhost/order/select?q=*:* &wt=json&indent= true&fq=order_date:[1441555200000 to *]simpledateformat sdf = new  SimpleDateFormat ("Yyyy-mm-dd ' T ' HH:mm:ss ' Z '");  string time =  "losttime:[" +sdf.format ( New date ()) + " TO " +sdf.format (New date ()) + "]" http://localhost/order/select?q=*:* &wt= JSON&INDENT=TRUE&FQ=CHANNEL_ID:5 AND ORDER_DATE:[1441555200000 TO 1441641599000]  AND  (Order_status:e or order_status:f or order_status:g or order_ STATUS:H) http://localhost/wwwitem/select?q=*:* &wt=json&indent=true&fq=key_word:%e5%bd%93%e5%9c%b0% e7%be%8e%e9%a3%9f&group=true&group.field=second_category_id&start=0&rows=10000& 1445419659773 


This article from "Ertan to win" blog, declined reprint!

SOLR implementation of SQL query statements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.