zoukankan      html  css  js  c++  java
  • 安装和使用solr

    下载Solr:wget http://apache.fayea.com/lucene/solr/6.4.1/solr-6.4.1.tgz
    解压:tar -zxvf solr-6.4.1.tgz

    bin/solr start
    bin/solr create -c stdalone

    bin/post -c stdalone example/exampledocs/*.xml

    http://localhost:8983/solr/stdalone/select?q=video
    http://localhost:8983/solr/stdalone/select?q=video&fl=id,name,price
    http://localhost:8983/solr/stdalone/select?q=name:black

    http://localhost:8983/solr/stdalone/select?q=price:[0%20TO%20400]&fl=id,name,price
    http://localhost:8983/solr/stdalone/select?q=price:[0%20TO%20400]&fl=id, name,price&facet=true&facet.field=cat

    bin/solr stop

    bin/solr -e cloud


    bin/solr status
    bin/solr healthcheck -c gettingstarted
    bin/post -c gettingstarted example/exampledocs/*.xml

    http://localhost:8983/solr/gettingstarted/select?q=price:[0%20TO%20400]&fl=id,%20name,price&facet=true&facet.field=cat

    bin/solr stop -all

    bin/solr -e cloud -noprompt

  • 相关阅读:
    Queue
    Singly-Linked List
    Array
    HTTP请求详解
    封装element的API
    uniapp登录逻辑
    Selector学习笔记 (未完待续)
    <Scalable IO in Java>学习
    Spring PropertyMapper源码阅读笔记
    leetcode 字节跳动探索系列
  • 原文地址:https://www.cnblogs.com/zl0372/p/solr.html
Copyright © 2011-2022 走看看