Git Product home page Git Product logo

solrj-example's Introduction

solrj-example

solrj+webmagic+selenium示例

使用webmagic和selenium-java爬取京东商品信息并入库MySQL。采用solr dataimport创建索引,采用solrj检索商品信息。

solr单机模式

https://coding.net/u/aimeizi/p/solr/git

基于solr4.10.4集成IKAnalyzer、mmseg4j、ansj中文分词及Dataimport功能

solr集群模式

https://coding.net/u/aimeizi/p/SolrCloud/git

solr集群模式。基于solr4.10.4集成IKAnalyzer、mmseg4j、ansj中文分词及Dataimport等功能

运行

JDProductProcessor 是JD商品采集的入口,main方法直接运行。

CcdiPageProcessor 是纪检委网站采集的入口,main方法直接运行。

启动solr服务,运行爬虫采集程序,启动搜索服务,完成搜索。

Screenshots

webmagic jmx监控

webmagic jmx监控查看总抓取页数

webmagic爬取JD商品数据入库数据

solrdataimport数据导入

solr搜索 查询所有商品评论降序排列,以表格的方式展现

solr搜索 查询名称手机的商品按价格降序排列,以表格的方式展现

solr搜索 查询名称手机且过滤产品类别为手机的商品信息按价格降序,以列表的方式展现

solr搜索 查询名称为洗衣机且过滤产品类别为洗衣机的商品信息按价格降序,以表格的方式展现

solr搜索 查询名称为iPhone的商品信息按价格降序,以表格的方式展现

参考文档

http://webmagic.io/docs/zh/

solrj-example's People

Contributors

v5tech avatar

Watchers

James Cloos avatar abel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.