เกี่ยวกับ Apache solr 4.0
Upcoming SlideShare
Loading in...5
×
 

เกี่ยวกับ Apache solr 4.0

on

  • 859 views

1. แนะนะเกี่ยวกับ Apache Solr 4.0 ...

1. แนะนะเกี่ยวกับ Apache Solr 4.0
2. การใช้งาน Admin
3. การ Scale ระบบงาน
4. เครื่องมือการทดสอบประสิทธิภาพ
5. การ tunning ขั้นพื้นฐาน

Statistics

Views

Total Views
859
Views on SlideShare
859
Embed Views
0

Actions

Likes
2
Downloads
18
Comments
2

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

เกี่ยวกับ Apache solr 4.0 เกี่ยวกับ Apache solr 4.0 Presentation Transcript

  • Apache Solr @somkiat
  • Apache Solr Search server Based on Lucene Full-text search library Java 100% Open source
  • Apache Solr REST API HTTP XML JSON
  • Apache Solr Client supports .NET Java PHP Ruby Python
  • How we implement ?
  • SELECT * FROM product WHERE id LIKE ‘%1%’ AND name LIKE ‘%xxx%’
  • Problems Full table scan = Killer performance RDBMS is not designed for search like that
  • Architecture Query WEB Application Apache Solr Result Update Indexer
  • How to use ? Install Define solrconfig.xml Define schema.xml Deploy to Java Web Server Jetty ( Default ) Apache Tomcat
  • Define schema.xml Structure of data Liked table structure Must have Primary/Unique key Must have _version_ field
  • <field name="id" type="string" indexed="true" stored="true" required="true" /> ! <field name="item_id" type="string" indexed="true" stored="true" required="true" /> <uniqueKey>id</uniqueKey>
  • Solr Administrator http:/ /localhost:8983/solr
  • Dashboard page
  • Add/Update index
  • Add/Update Index http:/ /localhost:8983/solr/ collection1/update?wt=json
  • Delete Index http:/ /localhost:8983/solr/collection1/ update? stream.body=<delete><query>*:*</ query></delete>&commit=true
  • Ping http:/ /localhost:8983/solr/ collection1/admin/ping?wt=json
  • Scaling Solr Scale up CPU, RAM, SSD Scale horizontal (http:/ /wiki.apache.org/solr/DistributedSearch) Scale deep Sharding and Multiple replicate
  • Performance Tools JMeter SolrMeter https:/ /code.google.com/p/ solrmeter/ http:/ /wiki.apache.org/solr/BenchmarkingSolr
  • JMeter
  • SolrMeter
  • Tuning performance http:/ /wiki.apache.org/solr/SolrPerformanceFactors
  • JVM Memory -Xms1024M -Xmx1024M -server
  • Virtual Memory Virtual memory for index Config in solrconfig.xml <directoryFactory/> change from StandardDirectoryFactory to MmapDirectoryFactory
  • Enable http caching Config in solrconfig.xml
  • <httpCaching lastModifiedFrom="openTime" etagSeed="Solr" never304="false"> <cacheControl> max-age=43200, must-revalidate </cacheControl> ! </httpCaching>
  • Q/A