ÃֽŠ°Ô½Ã±Û(JAVA)
2018.07.30 / 10:22

°Ë»ö¿£Áø ¼Ö¶ó ½ÃÀÛÇϱâ

summerman
Ãßõ ¼ö 239


°Ë»ö¿£Áø µµÀÔÀÇ Çʿ伺
ÇÊÀÚÀÇ °æ¿ì´Â 50¿© °¡ÁöÀÇ »çÀÌÆ®¸¦ ¸¸µé¸é¼­, µü µÎ¹ø À¯Àú°¡ ¸¹Àº »çÀÌÆ®¸¦ ¸¸µç ÀûÀÌ ÀÖ¾ú½À´Ï´Ù. (ÇÏÁö¸¸.. °¡¸®»ç´Ï´Â........)
°Ô½Ã¹°ÀÌ Á¡Á¡ ¸¹¾ÆÁ®¼­ ¸î ¸¸ °³ÀÇ °Ô½Ã¹°ÀÌ ½×À̱⠽ÃÀÛÇÏ¸é ±âÁ¸ RDBMS ÀÇ LIKE °Ë»öÀ¸·Î´Â °¨´çÀÌ ¾ÈµÉ Á¤µµÀÇ µ¥ÀÌÅÍ°¡ ½×ÀÌ°Ô µÇ°í, ´ëºÎºÐÀÇ Ä¿¹Â´ÏƼµéÀº À̸¦ [´ÙÀ½°Ë»ö] À¸·Î ²÷¾î °Ë»öÇÏ´Â ¹æ¹ýÀ¸·Î ÇØ°áÇØ ¿Ô½À´Ï´Ù. (°¨´çÀÌ µÇ´õ¶óµµ.. À妽º¸¦ Å» ¼ö ¾ø´Â LIKE ´Â Áö¾çÇϽñ⠹ٶø´Ï´Ù.)
ÀÌ·± »óȲ¿¡¼­ °Ë»ö¿£ÁøÀ» µµÀÔ ÇÒ °æ¿ì, »ç¿ëÀÚ°¡ [´ÙÀ½°Ë»ö] À¸·Î ²÷¾î °Ë»öÇÏ´Â ºÒÆíÇÔµµ »ç¶óÁö°Ô µÇ¸ç, ÀÚ¿¬¾î °Ë»öÀ̳ª ½ºÄھ Á¤·Ä, ´Ù¾çÇÑ Á¶°Ç (¿¹: À̸§ÀÌ È«±æµ¿ÀÌ¸ç ³»¿ë¿¡ ~~ ~~ ´Ü¾î°¡ µé¾î°¡´Â °Í) ¿¡¼­ ´õ¿í °­Á¡À» º¸ÀÔ´Ï´Ù.
°Ë»ö¿£Áø Á¾·ù
- http://db-engines.com/en/ranking/search+engine
- ·ç¾ÀÀº ¶óÀ̺귯¸®·Î ºÐ·ùµÇ¾î ºüÁ®ÀÖ½À´Ï´Ù.
±¹³»¿¡¼± ¾Æ·¡ 4°³¸¦ ¸¹ÀÌ »ç¿ëÇÕ´Ï´Ù.
·ç¾À
Elasticsearch (·ç¾À±â¹Ý)
Solr (·ç¾À±â¹Ý)
Sphinx
¿©±â¼­´Â ¼Ö¶ó¸¦ ¼³Ä¡Çغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.


1. ¼Ö¶ó ¼³Ä¡
Âü°í : https://gs.saro.me/#!m=pd&pn=6
- ¼Ö¶ó¸¦ ´Ù¿î¹Þ½À´Ï´Ù. (tgz, zip »ó°ü¾øÀ½ ¾ÐÃุ Ç®¸éµË´Ï´Ù.)
- ¾ÐÃàÀ» Ç®¾îº¾´Ï´Ù.
¾Æ·¡¿Í °°Àº ±¸Á¶°¡ º¸ÀÏ°Ì´Ï´Ù.
¼Ö¶ó·çÆ®
¦§ bin
¦§ contrib
¦§ dist
¦§ docs
¦§ example
¦§ licenses
¦§ server
¦§ CHANGES.txt
¦§ LICENSE.txt
¦§ LUCENE_CHANGES.txt
¦§ NOTICE.txt
¦¦ README.txt
- example/example-DIH/solrÀÇ db µð·ºÅ丮¸¦ server/solr/ ·ÎÀ̵¿½Ãŵ´Ï´Ù.
server/solr/db
- db µð·ºÅ丮¸íÀ» first·Î º¯°æÇÕ´Ï´Ù.
server/solr/first
- ÀÌ·¸°Ô first ÇÁ·ÎÁ§Æ®°¡ »ý¼ºµÇ¾ú½À´Ï´Ù.
À̸§Àº first °¡ ¾Æ´Ñ ´Ù¸¥°É·Î Çصµ ¹«¹æÇϳª ¿©±â¼± first ¸¦ ±âÁØÀ¸·Î ¼³¸íÇÕ´Ï´Ù.
À̸§±ÔÄ¢Àº º¯¼ö±ÔÄ¢°ú ºñ½ÁÇÕ´Ï´Ù.

¿©±â¿¡¼± ¿¹Á¦ ÆÄÀÏÀ» È°¿ëÇÏ´Â ÂÊÀ¸·Î ÁøÇàÇϵµ·Ï ÇÏ°Ú½À´Ï´Ù.
- ¼Ö¶ó·çÆ®¿¡¼­ server, bin, contrib, dist ¸¦ Á¦¿ÜÇÏ°í ´Ù Áö¿ó´Ï´Ù.
- _LIB Æú´õ¸¦ ¸¸µé¾îÁÝ´Ï´Ù. : ¿ÜºÎ jar Æ÷ÇÔ Æú´õ
(À̸§Àº ÀÚÀ¯Áö¸¸ ¿©±â¼± _LIB ·Î ¼³¸íµË´Ï´Ù.)
¾Æ·¡¿Í °°Àº ±¸Á¶°¡ µÇ¸éµË´Ï´Ù.
¼Ö¶ó·çÆ®
¦§ _LIB : ¿©±â¿¡ °¢Á¾ JDBC³ª ÇѱÛÇüżҵîÀ» ³Ö¾îÁÝ´Ï´Ù.
¦¢ ( ÇÑ±Û ÇüÅÂ¼Ò Âü°í : http://cafe.naver.com/korlucene )
¦§ bin
¦§ contrib
¦§ dist
¦¦ server
- _LIB Æú´õ¾È¿¡ JDBC ¸¦ ³Ö¾îÁÖ¼¼¿ä.
(¿©±â¼± JDBC ¸¦ ª°Ô¸¸ ¼³¸íÇÏ´Ï ¾Æ¹«°Íµµ ¾ÈÇϼŵµµË´Ï´Ù.)
ÇÏÁö¸¸ ¾ÆÁ÷ ¼³Á¤ÇØ¾ß ÇÒ °ÍÀÌ ¸¹À½À¸·Î ½ÇÇà½ÃÅ°½Ã¸é ¾ÈµË´Ï´Ù.


2. first ÇÁ·ÎÁ§Æ® ¼³Á¤
- server/first/conf ·Î À̵¿ÇÕ´Ï´Ù.
- solrconfig.xml À» ¿­°í ¾Æ·¡¿Í °°ÀÌ ÀÛ¾÷ÇÕ´Ï´Ù.
  1. <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
  2. <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
  3. <lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
  4. <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
  5. <lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib" regex=".*\.jar" />
  6. <lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-velocity-\d.*\.jar" />
- À§¿Í °°ÀÌ ½áÀÖ´Â ºÎºÐÀ» ã¾Æ¼­ ¾Æ·¡¿Í °°ÀÌ Ãß°¡ÇØÁÝ´Ï´Ù.
  1. <lib dir="${solr.install.dir:../../../..}/_LIB/" regex=".*\.jar" />
- managed-schema ÆÄÀÏÀ» ¿ÀÇÂÇÕ´Ï´Ù.
(¹öÀü¿¡ µû¶ó¼­´Â schema.xml À̳ª ÇöÀç ±Û¾²´Â ½ÃÁ¡ÀÇ ÃֽŹöÀü 6.0.0 ¿¡¼­´Â managed-schema ÀÔ´Ï´Ù.)
===========================================
¿©±â¼­ ¾Ë¾ÆµÖ¾ßÇÒ °Í!
- field Àº µ¥ÀÌÅͺ£À̽ºÀÇ ¿­°ú °°À½!
- dynamicField / fieldType Àº ÀÚ·áÇü (¾ö¹ÐÈ÷ ¸»Çϸé ÀÚ·áÇüÀº ¾Æ´Ï°í ÇʵåŸÀÔÀÌÁö¸¸.... [¼³Á¤±â´ÉµéÀÌ ¸¹À½] ÀÌÇظ¦ µ½±âÀ§ÇØ) ÀÔ´Ï´Ù.
- _version_ field ´Â ÇʼöÀÔ´Ï´Ù.
- 1°³ÀÇ À¯´ÏÅ© Çʵ尡 ÇÊ¿äÇÏ°í <uniqueKey>ÇʵåÀ̸§</uniqueKey> À¸·Î ÀúÀåÇÕ´Ï´Ù.
- ±âº» °Ë»öÇʵåÀÇ ¿¹Á¦¿¡¼­ °ªÀº text ÀÔ´Ï´Ù. ÀÌ°É ¼öÁ¤ÇÒ °æ¿ì schema.xml ¿¡¼­ <str name="df">text</str> µÈ ¸ðµç °ªÀ» ¹Ù²ã¾ßÇÕ´Ï´Ù.
- fieldType À» º¸½Ã¸é °¢Á¾ ÇʵåµéÀÌ ¼±¾ðµÇ¾îÀÖ°í ¿©±â¼­ ÀÚ½ÅÀÌ ¼öÁ¤ÇÏ¿© »ç¿ëÇÒ¼ö ÀÖÀ¸¸ç ¾Æ·¡ ¿¹Á¦¼³¸í
  1. <!-- ÇʵåŸÀÔÀÇ À̸§Àº text_en ÀÌ´Ù. -->
  2. <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
  3. <!-- Çʵ忡 Àε¦½Ì (type="index")µÉ ¶§ °ÅÄ¡´Â ºÐ¼®±ÔÄ¢ -->
  4. <analyzer type="index">
  5. <tokenizer class="solr.StandardTokenizerFactory"/>
  6. <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
  7. <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt" />
  8. <filter class="solr.LowerCaseFilterFactory"/>
  9. <filter class="solr.EnglishPossessiveFilterFactory"/>
  10. <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  11. <filter class="solr.PorterStemFilterFactory"/>
  12. </analyzer>
  13. <!-- Çʵ忡 °Ë»öÇÒ¶§ °Ë»ö¾î(type="query")°¡ °ÅÄ¡´Â ºÐ¼®±ÔÄ¢ -->
  14. <analyzer type="query">
  15. <tokenizer class="solr.StandardTokenizerFactory"/>
  16. <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  17. <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/>
  18. <filter class="solr.LowerCaseFilterFactory"/>
  19. <filter class="solr.EnglishPossessiveFilterFactory"/>
  20. <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  21. <filter class="solr.PorterStemFilterFactory"/>
  22. </analyzer>
  23. </fieldType>
- ºÐ¼®±ÔÄ¢À̶ó´Â ¸»À» ½è´Âµ¥ ¿¹¸¦µé¾î ÇѱÛÇüżÒ(À§ ·ç¾À ³×À̹ö Ä«Æä http://cafe.naver.com/korlucene ¿¡ °¡¸é ±¸ÇÒ ¼ö ÀÖ½À´Ï´Ù.)¶ó°í ÇÑ´Ù¸é ¾Æ·¡¿Í °°ÀÌ ÀúÀå/°Ë»öµË´Ï´Ù.
(¿¹Á¦¿¡¼­ º¸¿©ÁÖ´Â ÇѱÛÀ» ÂÉ°³´Â ÇàÀ§´Â ¿¹Á¦ÀÔ´Ï´Ù. ½ÇÁ¦ ±ÔÄ¢ÀÌ ³Ê¹« ¸¹¾Æ¼­ Á÷Á¢ µ¹·ÁºÁ¾ß ¾Ë ¼ö ÀÖ½À´Ï´Ù. ¾Æ·¡Ã³·³ ±ò²ûÇÏ°Ô À߸®Áø ¾Ê½À´Ï´Ù...;;)
Àε¦½Ì ¿¹Á¦ : µ¥ÀÌÅÍ -> °¡¸®»ç´Ï °³¹ßÀÚ°ø°£¿¡ »ç¶÷µéÀÌ ¸¹ÀÌ ¿ÔÀ¸¸é ÁÁ°Ú¾î¿ä. -> ºÐ¼®ÇÊÅÍ -> °¡¸®»ç´Ï / °³¹ßÀÚ / °ø°£ / »ç¶÷ / ¸¹ÀÌ / ¿ÔÀ¸¸é / ÁÁ°Ú
°Ë»ö(Äõ¸®) ¿¹Á¦ : µ¥ÀÌÅÍ -> °¡¸®»ç´Ï¿¡ »ç¶÷µéÀÌ ¸¹ÀÌ ÀÖ³ª¿ä? -> ºÐ¼®ÇÊÅÍ -> °¡¸®»ç´Ï / »ç¶÷ / »ç¶÷µé / ¸¹ÀÌ
Áï, ÀÌ·±½ÄÀ¸·Î Çؼ­ À§ Àε¦½Ì ¿¹Á¦´Â Äõ¸® ¿¹Á¦¿¡ ´ëÇØ °Ë»öµÇ°Ô µË´Ï´Ù.
- À§¿¡¼­µµ ¸»ÇßÁö¸¸.. ¾ÆÁ÷ ¼Ö¶ó´Â ÇÑ±Û ÇüżҸ¦ Áö¿øÇÏÁö ¾Ê±â ¶§¹®¿¡ Á÷Á¢ ¸¸µé°Å³ª À§ Ä«Æä¿¡¼­ ¹ÞÀº ¹æ¹ýµîÀÌ ÀÖ½À´Ï´Ù.
- Áö¿ø ÇØ Áشٰí Çصµ Àü¹®ÀûÀ¸·Î ¾²·Á¸é Á÷Á¢ ÇÊÅ͸¦ ÄÚµùÇؼ­ Ãß°¡ ÇØÁÝ´Ï´Ù.
- °¡¶ó»ç´ÏÀÇ Å±׿¹Á¦´Â Á÷Á¢ ¸¸µéÁø ¾Ê°í ¼¯¾î »ç¿ëÇϴµ¥, ¾Æ·¡¿Í °°ÀÌ µÇ¾îÀÖ½À´Ï´Ù.
  1. <fieldType name="gs_tag" class="solr.TextField" positionIncrementGap="100">
  2. <analyzer type="index">
  3. <!-- ÀúÀå½Ã¿¡´Â ´ë¼Ò¹®ÀÚ ±¸ºÐÀ» ¾ø¿¡°í(LowerCaseFilterFactory) °ø¹é¸¸ º¸°í Àß¶ó¼­ ÀúÀåÇÑ´Ù´Â ¶æÀÔ´Ï´Ù. -->
  4. <filter class="solr.LowerCaseFilterFactory" />
  5. <tokenizer class="solr.WhitespaceTokenizerFactory" />
  6. </analyzer>
  7. <analyzer type="query">
  8. <!-- °Ë»öÇÒ¶§´Â ¾Æ·¡¿Í °°ÀÌ ÇѱÛÀ» ¸ðµÎºÐ¸®ÇÏ¿© »ç¿ëÇÕ´Ï´Ù. -->
  9. <filter class="solr.LowerCaseFilterFactory" />
  10. <tokenizer class="org.apache.lucene.analysis.ko.KoreanTokenizerFactory" />
  11. <filter class="solr.LengthFilterFactory" min="1" max="50" />
  12. <filter class="org.apache.lucene.analysis.ko.KoreanFilterFactory" hasOrigin="true" hasCNoun="true" />
  13. <filter class="org.apache.lucene.analysis.ko.WordSegmentFilterFactory" hasOrijin="true" />
  14. <filter class="org.apache.lucene.analysis.ko.HanjaMappingFilterFactory" />
  15. <filter class="org.apache.lucene.analysis.ko.PunctuationDelimitFilterFactory" />
  16. <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
  17. </analyzer>
  18. </fieldType>
- ÁÖÁ¦°¡ ³Ê¹« ¸Ö¸® ¶³¾îÁö´Ï °è¼Ó ÁøÇàÇϵµ·Ï ÇÏ°Ú½À´Ï´Ù...
===========================================
- ¸ðµç <copyField>¿Í <field> ³ëµå¸¦ »èÁ¦ÇÕ´Ï´Ù.
- ¾Æ·¡¿Í °°ÀÌ Ãß°¡ÇØÁÝ´Ï´Ù.
  1. <!-- ¹Ýµå½Ã ÇÊ¿ä -->
  2. <field name="_version_" type="long" indexed="true" stored="true"/>
  3. <!-- À¯´ÏÅ©°ª -->
  4. <field name="id" type="tlong" indexed="true" stored="true"/>
  5. <!-- Á¦¸ñ -->
  6. <field name="subject" type="text_en" indexed="true" stored="false"/>
  7. <!-- ³»¿ë -->
  8. <field name="text" type="text_en" indexed="true" stored="false"/>
- type Àº À§¿¡¼­ ¼³¸íÇÑ fieldType ÀÇ À̸§ÀÔ´Ï´Ù.
- indexed : À妽º ¿©ºÎ, stored : ¿ø¹® ÀúÀå¿©ºÎ
- ÀÌ·¸°Ô Çؼ­ ÇϳªÀÇ À¯´ÏÅ© ¾ÆÀ̵𸦠°¡Áö°í ÀÖ°í Á¦¸ñ / ³»¿ëÀÌ ÀÖ´Â ½ºÅ°¸¶¸¦ ¿Ï¼ºÇß½À´Ï´Ù.
- ÀúÀå (»ç½Ç ¿¹Á¦¿¡ ÀÇÁ¸ÇÏÁö ¾Ê°í Â÷±ÙÂ÷±Ù ÇÊ¿äÇÑ °Í¸¸ ÀÛ¼ºÇÏ´Â °ÍÀÌ ÁÁÁö¸¸... ±×°É ¼³¸íÇÏ·Á¸é ÀÌ °­ÀÇ°¡ ³Ê¹« ±æ¾îÁú °Í °°¾Æ ÀÌ·¸°Ô ³ª°©´Ï´Ù.)
- db-data-config.xml ¿­±â
- JDBC ¸¦ jar¸¦ _LIB¿¡ ³Ö¾ú°í À§ id / subject / text ¿¡ ´ëÀÀÇÏ´Â Å×À̺íÀÌ ÀÖ´Ù¸é Á÷Á¢ Àû¾î ÁֽøéµË´Ï´Ù.
- ´Ù¸¸ ÀÌ ºÎºÐÀ» ½ºÅµÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ ÁÖ¼®Ã³¸®ÇÕ´Ï´Ù.
  1. <dataConfig>
  2. <!--
  3. <dataSource driver="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:${solr.install.dir}/example/example-DIH/hsqldb/ex" user="sa" />
  4. <document>
  5. <entity name="item" query="select * from item"
  6. deltaQuery="select id from item where last_modified > '${dataimporter.last_index_time}'">
  7. <field column="NAME" name="name" />
  8.  
  9. <entity name="feature"
  10. query="select DESCRIPTION from FEATURE where ITEM_ID='${item.ID}'"
  11. deltaQuery="select ITEM_ID from FEATURE where last_modified > '${dataimporter.last_index_time}'"
  12. parentDeltaQuery="select ID from item where ID=${feature.ITEM_ID}">
  13. <field name="features" column="DESCRIPTION" />
  14. </entity>
  15. <entity name="item_category"
  16. query="select CATEGORY_ID from item_category where ITEM_ID='${item.ID}'"
  17. deltaQuery="select ITEM_ID, CATEGORY_ID from item_category where last_modified > '${dataimporter.last_index_time}'"
  18. parentDeltaQuery="select ID from item where ID=${item_category.ITEM_ID}">
  19. <entity name="category"
  20. query="select DESCRIPTION from category where ID = '${item_category.CATEGORY_ID}'"
  21. deltaQuery="select ID from category where last_modified > '${dataimporter.last_index_time}'"
  22. parentDeltaQuery="select ITEM_ID, CATEGORY_ID from item_category where CATEGORY_ID=${category.ID}">
  23. <field column="DESCRIPTION" name="cat" />
  24. </entity>
  25. </entity>
  26. </entity>
  27. </document>
  28. -->
  29. </dataConfig>
- elevate.xml µµ ¿­¾î¼­ ¾Æ·¡¿Í °°ÀÌ ¹Ù²ãÁÝ´Ï´Ù.
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <elevate></elevate>


3. first ÇÁ·ÎÁ§Æ® ½ÇÇà
- bin Æú´õ·Î À̵¿ÇÕ´Ï´Ù.
> solr start -p 8888
- 8888 Àº Æ÷Æ®¹øÈ£ ÀÔ´Ï´Ù. ¿©±â¼­´Â 8888·Î ¼³¸íµÇ³ª ¿øÇÏ´Â Æ÷Æ®¸¦ ¼³Á¤ÇØÁÖ¼¼¿ä.
- ¿É¼ÇÀº Á¾·ù°¡ Á¤¸» ´Ù¾çÇÏÁö¸¸ ¿©±â¼­´Â ´Ù·çÁö¾Ê½À´Ï´Ù.
- Á÷Á¢ solr ¹èÄ¡¸¦ ¿­¾îº¸½Ã¸é ¸ðµç ¿É¼ÇÀ» º¸½Ç ¼ö ÀÖ½À´Ï´Ù.
- Á¢¼Ó : http://127.0.0.1:8888/
- ±ò²ûÇÑ °ü¸®µµ±¸°¡ ³ª¿É´Ï´Ù.!!
- Core Selector ¿¡¼­ first ¸¦ ¼±ÅÃÇÕ´Ï´Ù.
- ¾Æ±î JDBC¸¦ Ãß°¡ÇÏ°í db-data-config.xml ¸¦ id / subject / text ¿¡ ´ëÀÀÇÏ¿© ÀÛ¼ºÇϽźеéÀº dataimport ¿¡¼­ import ÇØÁÝ´Ï´Ù.
- ±×·³ ÀÌÁ¦ ¿¹Á¦·Î Ãß°¡Çغ¸°Ú½À´Ï´Ù.
======================================================
Äõ¸® ¾²´Â¹ý
- ¿©±â¼­´Â url ¹æ½ÄÀ¸·Î Çغ¸°Ú½À´Ï´Ù. (¿©·¯°¡Áö ¹æ¹ýÀÌ ÀÖ½À´Ï´Ù.)
- ÀÚ¹Ù¿¡¼­ ³¯¸®°Å³ª ÇÒ ¶§¿¡´Â ¿ë·®»ó get ÀÌ ¾Æ´Ñ post ·Î ³¯¸®½Ã±â ¹Ù¶ø´Ï´Ù.
Ãß°¡/¼öÁ¤
http://127.0.0.1:8888/solr/first/update?commit=true&stream.body={add:[{id:1, subject:"¾È³çÇϼ¼¿ä",text:"¿¹Á¦ ÀÔ´Ï´Ù."}]}
»èÁ¦ : idÀÇ ¼ýÀÚ´Â ÇØ´ç ¹®¼­ÀÇ À¯´ÏÅ©Å°
http://127.0.0.1:8888/solr/first/update?commit=true&stream.body={delete:[{id:1},{id:2}]}
´ç¿¬È÷ ¾È³çÇϼ¼¿ä ÀÌ·± °Íµé ÀüºÎ ÀÎÄÚµù Çϼż­ ³ÖÀ¸¼Å¾ß ÇÕ´Ï´Ù.
À©µµ¿ì Å©·Ò ±âÁØÀ¸·Î ±×³É Àú·¸°Ô ³Ö¾îµµ µé¾î°¡Áø ÇÏÁö¸¸... ¿¹Á¦ÀÌ´Ï... ½ÇÁ¦·Î´Â ÀüºÎ ÀÎÄÚµù Çؼ­ ³ÖÀ¸½Ã±â ¹Ù¶ø´Ï´Ù.

======================================================
- À§ ¹æ¹ý´ë·Î Çϳª Ãß°¡¸¦ Çغ¾´Ï´Ù.
- http://127.0.0.1:8888/solr/#/first/query °¡¼­ °Ë»öÀ» Çغ¾´Ï´Ù.
- óÀ½¿£ *:* ½ÄÀ¸·Î µÇ¾îÀÖÁö¸¸ ¿¹¸¦µé¾î text:¾È³ç À̶ó°í ¹Ù²Ù°í ¼­ºê¹ÔÀ» ÇÏ¸é ¾Æ·¡¿Í °°ÀÌ ³ª¿Ã°Ì´Ï´Ù.
  1. {
  2. "responseHeader":{
  3. "status":0,
  4. "QTime":0,
  5. "params":{
  6. "q":"text:¿¹Á¦",
  7. "indent":"on",
  8. "wt":"json"}},
  9. "response":{"numFound":1,"start":0,"docs":[
  10. {
  11. "id":1,
  12. "_version_":1532604497861279744}]
  13. }}
- °Ë»ö½Ã »ó´Ü¿¡ ÀÖ´Â ÁÖ¼Ò ¿¹¸¦µé¾î ¾Æ·¡¿Í °°ÀÌ Ä¡¸é.
http://127.0.0.1:8888/solr/first/select?indent=on&q=text:%EC%98%88%EC%A0%9C&wt=json


ÀÌÁ¦ ÀÀ¿ëÇؼ­ ¸¸µå½Ã±â¸¸ ÇÏ¸é µË´Ï´Ù.!!