1. server launch (dedicated terminal)
###shell
[jetulis@localhost example]$ sudo java -jar start.jar
2. indexing files : on a different terminal
###shell3. Tada ! search via admin screen
[cloudera@localhost exampledocs]$ sudo java -jar post.jar solr.xml monitor.xml
###shell4. index multiple files : posting
http://localhost:8983/solr/select/?q=solr&start=0&rows=10&indent=on
###shell5. delete by id
[cloudera@localhost exampledocs]$ sudo java -jar post.jar *.xml
###shell6. delete by query
[cloudera@localhost exampledocs]$ java -Ddata=args -jar post.jar "<delete><id>SP2514N</id></delete>"
SimplePostTool: version 1.2
SimplePostTool: POSTing args to http://localhost:8983/solr/update..
SimplePostTool: COMMITting Solr index changes..
###shell7. committing : posting will do this automatically
[cloudera@localhost exampledocs]$ java -Ddata=args -jar post.jar "<delete><query>name:DDR</query></delete>"
SimplePostTool: version 1.2
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported
SimplePostTool: POSTing args to http://localhost:8983/solr/update..
SimplePostTool: COMMITting Solr index changes..
###shell8. json return
[cloudera@localhost exampledocs]$ java -jar post.jar
###shell9. highlighting : w/ <em> tag
http://localhost:8983/solr/select/?q=P120+SP2514N&version=2.2&start=0&rows=10&indent=on&wt=json
&hl=true&hl.fl=name,features& <-- always hl + hl.fl10.facet <-- refine by
<str>Dual DVI connectors, HDTV out, <em>video</em> input</str>
###shell
&q=*:*&facet=true&facet.field=cat
&facet=true&facet.field=cat&facet.field=inStock
&q=*:*&fl=name,manufacturedate_dt&facet=true&facet.date=manufacturedate_dt&facet.date.start=2004-01-01T00:00:00Z&facet.date.end=2010-01-01T00:00:00Z&facet.date.gap=%2b2YEAR
'IT > Search Engine' 카테고리의 다른 글
[펌글] 한국- 와이즈넛 빅크롤러 (0) | 2013.07.25 |
---|---|
[펌글] 한국 검색 SW 기업 2013 상반기 장사 잘 되었다 (0) | 2013.07.25 |
[펌글] '검색 최적화 전도사' 나선 구글 3인방 (0) | 2012.02.05 |
[펌글] 구글의 귀띔 "검색에서 잘 노출되려면..." (0) | 2012.01.31 |
[펌글] 구글 검색 알고리즘, 어떻게 적용되나 (0) | 2012.01.31 |