solr1.2-seminar-rel1.0.ppt
|
|
- つかさ ちづ
- 7 years ago
- Views:
Transcription
1 RailsSolr Solr 1.2 rel 1.0
2 Rails Solr Apache Solr 1.2
3 Goal/Non-Goal Goal Apache Solr 1.2Solr Solr Solr Solr Solr Non-Goal Solr Solr SolrSolr
4 1. 2. Solr Solr Solr Solr 3. example example example solr-ruby 4. schema.xml ANALYSIS 5. Rails Rails
5
6 UNIXgrepSQLlike SolrNamazuSennaGoogleYahoo!
7 ID a) b) c)
8 AND AND
9 UNIXgrep SQLlike
10 Google PageRank Lucene tf*idf SimilarityJavadoc JapaneseAnalyzer N-gram N CJKAnalyzer
11 Solr
12 Solr apache-solr zipsubversion $SOLR $SOLR/example start.jar $ cd $SOLR/example $ java -jar start.jar :20:52.050::INFO: Logging to STDERR via org.mortbay.log.stderrlog :20:52.376::INFO: jetty : : 2008/06/03 17:20:55 org.apache.solr.servlet.solrdispatchfilter init : SolrDispatchFilter.init() done 2008/06/03 17:20:55 org.apache.solr.servlet.solrservlet init : SolrServlet.init() 2008/06/03 17:20:55 org.apache.solr.servlet.solrservlet init : SolrServlet.init() done 2008/06/03 17:20:55 org.apache.solr.servlet.solrupdateservlet init : SolrUpdateServlet.init() done :20:55.675::INFO: Started :8983 [Ctrl]+[c]
13 Solr
14 example
15 example example $SOLR/example/exampledocs post.jar $ cd $SOLR/example/exampledocs $ java -jar post.jar *.xml SimplePostTool: version 1.2 SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported SimplePostTool: POSTing files to SimplePostTool: POSTing file hd.xml : : SimplePostTool: POSTing file vidcard.xml SimplePostTool: COMMITting Solr index changes.. XML <add> <doc> <field name="id">12345</field> <field name="name"></field> <field name="cat"></field> </doc> <doc/> <doc/> </add>
16 example example XML "*:*"
17 q= start==0 rows==10 fl= wt=xml,json,ruby,python, indent=on debugquery=on facet=on facet.field= facet.mincount= facet.query= fq=
18 solr-ruby solr-ruby $SOLR/client/ruby/solr-ruby/lib/solr.rb Solr solr=solr::connection.new(" Solr request=solr::request::standard.new(:query=>'*:*') response=solr.send(request) irb $ irb -I $SOLR/client/ruby/solr-ruby/lib -r solr irb(main):001:0> solr=solr::connection.new(" => URL: localhost:8983 irb(main):002:0> request=solr::request::standard.new(:query=>'*:*') "*:*", :field_list=>["*", "score"]}> irb(main):003:0> pp solr.send(request)
19
20 1. Solr$SOLR/example/solr/data/index 2. schema.xml $SOLR/example/solr/conf/schema.xmlSolr schema.xml 3. post.jarp.15blog.xml 4. fl=*
21 CJKAnalyzer [ANALYSIS]
22 Rails
23 Rails 1. Rails $ rails sample 2. environment.rb "$SOLR/client/ruby/solr-ruby/lib" "$ gem install solr-ruby" $:.unshift '$SOLR/client/ruby/solr-ruby/lib' ActiveRecord Rails::Initializer.run do config config.frameworks -= [ :active_record ] end 3. app/controllers/search_controller.rb app/helpers/search_helper.rb app/views/search/*.rhtml lib/solr_context.rb 4. Rails "`load_missing_constant': uninitialized constant ActiveRecord (NameError)" config/initializers/new_rails_defaults.rb ActiveRecord2 $ ruby script/server
24 1. q 2. q 3. fq 4. [][] start
-34-
-33- -34- ! -35- ! -36- ! -37- -38- -39- -40- -41- -42- -43- -44- -45- -46- -47- -48- -49- -50- ! -51- -52- !! -53- -54- ! -55- -56- -57- !!!!! "" "!!! " "" " -58- -59- !!! -60- -61- -62- -63- ! -64- !
More information2
1 2 10 14 945 3000 2012 3 10 4 5 6 7 8 9 10 11 12 2011 11 21 12301430 (1215 ) 13 6 27 17 () ( ) ( ) (112360) 2 (1157) (119099) ((11861231) )( ) (11641205) 3 (1277) 3 4 (1558) (1639)() 12 (1699)( ) 7 (1722)
More informationintra-mart Accel Platform
Solr 管理者ガイド初版 2014-05-30 1 目次 1. 改訂情報 2. はじめに 2.1. 本書の内容 2.2. 対象読者 2.3. 本書に記載されている外部サイトの URL 2.4. 用語解説 2.5. 本書の構成 3. Solrの概要 3.1. Apache Solr とは 3.2. RDBとの比較 4. Solrのセットアップ 4.1. 前提条件 4.2. セットアップ手順 4.3.
More informationプログラム
!!!!!!!! !!!!!!! "! !!!!!!!!!! !!!!!! !! !! !!!! !! " " " !!!! !!! "!! !! " !! " !!!! !! "!!! !!!!!! " " !!!!!!!!!!!! !!!!!! ρ!!"! " " " " " " " " "!!! " " " " " " "!! "" !! !!!! "!! " "!! ρ !!!! " "!!
More information-----------------------------------------------------------------------------------------1 --------------------------------------------------------------------------------------1 -------------------------------------------------------------------------------------1
More information›¼’à”v“lŠÍ1−ª
3 1 1 2 3 4 5 6 7 8 8 10 12 14 16 18 20 22 24 2 1 2 3 4 5 6 7 8 9 10 11 12 26 28 30 32 34 36 38 40 42 44 46 48 50 4 3 1 2 3 4 5 52 54 56 58 60 6 62 7 8 9 10 64 66 68 70 72 5 1 1 4 2 5 6 6 7 1 8 1 9 2 10
More information1 2 3 4 1 2 3 4 1 2 3 4 12 3 4
1 2 3 4 5 6 1 2 3 4 5 6 1 2 1 2 1 2 1 2 1 2 3 4 12 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 12 3 4 1 2 3 4 5 6 7 8 1 2 3 46 7 1 2 3 4 5 6 7 1 2 3 4 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 16 7 8 92 3 46 7 :
More information- 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 2-12 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 1 - 2 - 3 6 1 1-4 - 5 - 6 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 130 3 130 5 2 50 1.5 48 59 62 63-9 - 1 - 2 - 3 () - 4 - 5 -
More informationS1460...........\1.E4
3 4 3 4 5 3 4 5 3 4 3 4 3 3 3 3 4 3 4 3 3 4 4 3 3 3 3 4 3 4 3 3 3 3 3 3 4 3 4 3 4 5 4 3 5 4 3 3 4 5 3 4 5 4 3 4 3 3 4 3 4 3 3 3 3 3 4 3 3 4! "! " " 0 6 ! " 3 4 3 3 4 3 ! " 3 3 4 5 4 5 6 3 3
More information●70974_100_AC009160_KAPヘ<3099>ーシス自動車約款(11.10).indb
" # $ % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 : ; < = >? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y " # $ % & ' ( ) * + , -. / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B
More informationIIJ GIO, SaaS, MOGOK
Ruby PaaS MOGOK awazu@iij.ad.jp 2013/02/23 IIJ GIO, SaaS, MOGOK What s MOGOK http://mogok.jp/ What s PaaS? What s MOGOK? MOGOK What s PaaS? MOGOK... What s Cloud? IaaS PaaS SaaS XaaS What s IaaS? Amazon
More information3
CHX75B061B 3 5 6 7 8 9 13 7 8 1 1 1 3 0 8 1 START! GOAL! 10 11 6.5.7 15.9 7.5 9.1 0 10 0 30 0 50 60 1 13 1 15 1 5 3 1 3 5 0 START! 8 1 16 17 0 8 1 18 19 0 1 1 8 0 0 8 1 3 0 8 1 5 0 8 1 6 7 0 8 1 8 9 1
More information2 3
Sample 2 3 4 5 6 7 8 9 3 18 24 32 34 40 45 55 63 70 77 82 96 118 121 123 131 143 149 158 167 173 187 192 204 217 224 231 17 285 290 292 1 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
More informationPerl Apporo Apporo Perl
Apporo @overlast Perl Apporo Apporo Perl @overlast blog : http://diary.overlasting.net/ : : aiphone => : iphone Apporo DSIRNLP Mining the Social Web Perl = : = (not ) : ( or ) ( ) = 要素技術を4Stepで開発する例 0.
More informationPowerPoint プレゼンテーション
"# "# $%&' "#$% $# & $# $% % ' ()(*"#$% +,(- ()(*"#$%.' ()(* $/.0##'' %0$&0% 1*2#/0/%'&0343$56 789#/0/'%&04../ "3"0##"$ "0%0$" "7 1*2#.30///04%.$ 789#.30///0#$'4 http://www.ibie2016.com/exhibitorlist/
More information001 No.3/12 1 1 2 3 4 5 6 4 8 13 27 33 39 001 No.3/12 4 001 No.3/12 5 001 No.3/12 6 001 No.3/12 7 001 8 No.3/12 001 No.3/12 9 001 10 No.3/12 001 No.3/12 11 Index 1 2 3 14 18 21 001 No.3/12 14 001 No.3/12
More information" " " " "!!
""!!!!! "! "! " " " " " " " "!! !!!!!!!!! ! !!!!! "β!"β"! " " "!! "! "!!! "!! !!! "! "!!!! "! !!!!! !!! " "!! "!!! " " "!!! ! "!! !!!!!!! " " " " "!! α!!!!! ! "! " " !!!!!!! "! ! ""!!!! !!!!!! " "! "!
More informationVersion C 1 2 3 4 5 1 2 3 4 5 6 7 8 9 0 A 1 2 1 3 4 5 1 1 2 1 1 1 2 4 5 6 7 8 3 1 2 C a b c d e f g A A B C B a b c d e f g 3 4 4 5 6 7 8 1 2 a b 1 2 a b 1 2 1 2 5 4 1 23 5 6 6 a b 1 2 e c d 3
More information17. (1) 18. (1) 19. (1) 20. (1) 21. (1) (3) 22. (1) (3) 23. (1) (3) (1) (3) 25. (1) (3) 26. (1) 27. (1) (3) 28. (1) 29. (1) 2
1. (1) 2. 2 (1) 4. (1) 5. (1) 6. (1) 7. (1) 8. (1) 9. (1) 10. (1) 11. (1) 12. (1) 13. (1) 14. (1) 15. (1) (3) 16. (1) 1 17. (1) 18. (1) 19. (1) 20. (1) 21. (1) (3) 22. (1) (3) 23. (1) (3) 24. 1 (1) (3)
More informationדוח דירקטוריון - חברה 012010 - גר 9 - 300510
13060608060408 0704 0609030606 060705 050607 040007030501 0606070804060708 0300''6 1 6 1''06''6 1 0606050706010708 31.03.10 04010705 030902010105 0507090708 13050607 060705 060608060408 0704 0609030606
More information日経テレコン料金表(2016年4月)
1 2 3 4 8,000 15,000 22,000 29,000 5 6 7 8 36,000 42,000 48,000 54,000 9 10 20 30 60,000 66,000 126,000 166,000 50 100 246,000 396,000 1 25 8,000 7,000 620 2150 6,000 4,000 51100 101200 3,000 1,000 201
More information2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226. 1893 B pp. 1 2. p. 3.
1 73 72 1 1844 11 9 1844 12 18 5 1916 1 11 72 1 73 2 1862 3 1870 2 1862 6 1873 1 3 4 3 4 7 2 3 4 5 3 5 4 2007 p. 117. 2 2 3 4 5 5 2 7 3 4 6 1 3 4 7 4 2 2 2 4 2 3 3 4 5 1932 A p. 40. 1893 A p. 224, p. 226.
More information73 p.1 22 16 2004p.152
1987 p.80 72 73 p.1 22 16 2004p.152 281895 1930 1931 12 28 1930 10 27 12 134 74 75 10 27 47.6 1910 1925 10 10 76 10 11 12 139 p.287 p.10 11 pp.3-4 1917 p.284 77 78 10 13 10 p.6 1936 79 15 15 30 80 pp.499-501
More information122011pp.139174 18501933
122011pp.139174 18501933 122011 1850 3 187912 3 1850 8 1933 84 4 1871 12 1879 5 2 1 9 15 1 1 5 3 3 3 6 19 9 9 6 28 7 7 4 1140 9 4 3 5750 58 4 3 1 57 2 122011 3 4 134,500,000 4,020,000 11,600,000 5 2 678.00m
More information29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23
29 2011 3 pp.55 86 19 1886 2 13 1 1 21 1888 1 13 2 3,500 3 5 5 50 4 1959 6 p.241 21 1 13 2 p.14 1988 p.2 21 1 15 29 2011 3 4 1 19 5 2 21 6 21 2 21 7 2 23 21 8 21 1 20 21 1 22 20 p.61 21 1 21 21 1 23 1
More informationMicrosoft Word - 映画『東京裁判』を観て.doc
1 2 3 4 5 6 7 1 2008. 2 2010, 3 2010. p.1 4 2008 p.202 5 2008. p.228 6 2011. 7 / 2008. pp.3-4 1 8 1 9 10 11 8 2008, p.7 9 2011. p.41 10.51 11 2009. p. 2 12 13 14 12 2008. p.4 13 2008, p.7-8 14 2008. p.126
More information() L () 20 1
() 25 1 10 1 0 0 0 1 2 3 4 5 6 2 3 4 9308510 4432193 L () 20 1 PP 200,000 P13P14 3 0123456 12345 1234561 2 4 5 6 25 1 10 7 1 8 10 / L 10 9 10 11 () ( ) TEL 23 12 7 38 13 14 15 16 17 18 L 19 20 1000123456
More information308 ( ) p.121
307 1944 1 1920 1995 2 3 4 5 308 ( ) p.121 309 10 12 310 6 7 ( ) ( ) ( ) 50 311 p.120 p.142 ( ) ( ) p.117 p.124 p.118 312 8 p.125 313 p.121 p.122 p.126 p.128 p.156 p.119 p.122 314 p.153 9 315 p.142 p.153
More information戦後の補欠選挙
1 2 11 3 4, 1968, p.429., pp.140-141. 76 2005.12 20 14 5 2110 25 6 22 7 25 8 4919 9 22 10 11 12 13 58154 14 15 1447 79 2042 21 79 2243 25100 113 2211 71 113 113 29 p.85 2005.12 77 16 29 12 10 10 17 18
More informationfx-9860G Manager PLUS_J
fx-9860g J fx-9860g Manager PLUS http://edu.casio.jp k 1 k III 2 3 1. 2. 4 3. 4. 5 1. 2. 3. 4. 5. 1. 6 7 k 8 k 9 k 10 k 11 k k k 12 k k k 1 2 3 4 5 6 1 2 3 4 5 6 13 k 1 2 3 1 2 3 1 2 3 1 2 3 14 k a j.+-(),m1
More information- 1 - - 0.5%5 10 10 5 10 1 5 1
- - - 1 - - 0.5%5 10 10 5 10 1 5 1 - 2 - - - - A B A A A B A B B A - 3 - - 100 100 100 - A) ( ) B) A) A B A B 110 A B 13 - 4 - A) 36 - - - 5 - - 1 - 6-1 - 7 - - 8 - Q.15 0% 10% 20% 30% 40% 50% 60% 70%
More information中国の憲法改正
2004 10 13 11 13 14 33 67 80 89 16 10 59 81 98 136 1982 12 1988 1993 1999 20 04 2004 1987 13 1988 1992 14 1993 1997 15 1999 2002 16 2004 60 2002 11 12 20 2003 10 28 2003 6 2003.10.28, 2003, p.16 2002 2002,
More information