SEARCH
TOOLBOX
LANGUAGES
Solr

Solr

From Chaehyun

(Difference between revisions)
Jump to: navigation, search
(Created page with "* 내가 만든 lib 포함 ** solr3.6/example/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib")
Line 1: Line 1:
* 내가 만든 lib 포함
* 내가 만든 lib 포함
** solr3.6/example/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib
** solr3.6/example/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib
 +
 +
* schema.xml
 +
<pre>
 +
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
 +
      <analyzer type="index">
 +
        <!--<tokenizer class="solr.StandardTokenizerFactory"/>-->
 +
        <tokenizer class="org.apache.lucene.analysis.kr.KoreanTokenizerFactory"/>
 +
        <filter class="org.apache.lucene.analysis.kr.KoreanFilterFactory" bigrammable="true" hasOrigin="true" />
 +
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
 +
        <!-- in this example, we will only use synonyms at query time
 +
        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
 +
        -->
 +
        <filter class="solr.LowerCaseFilterFactory"/>
 +
      </analyzer>
 +
      <analyzer type="query">
 +
      <!--
 +
        <tokenizer class="solr.StandardTokenizerFactory"/>
 +
        -->
 +
        <tokenizer class="org.apache.lucene.analysis.kr.KoreanTokenizerFactory"/>
 +
        <filter class="org.apache.lucene.analysis.kr.KoreanFilterFactory" bigrammable="true" hasOrigin="true" />
 +
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
 +
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
 +
        <filter class="solr.LowerCaseFilterFactory"/>
 +
      </analyzer>
 +
    </fieldType>
 +
</pre>

Revision as of 05:55, 25 June 2012

  • 내가 만든 lib 포함
    • solr3.6/example/work/Jetty_0_0_0_0_8983_solr.war__solr__k1kf17/webapp/WEB-INF/lib
  • schema.xml
 <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
        <!--<tokenizer class="solr.StandardTokenizerFactory"/>-->
        <tokenizer class="org.apache.lucene.analysis.kr.KoreanTokenizerFactory"/>
        <filter class="org.apache.lucene.analysis.kr.KoreanFilterFactory" bigrammable="true" hasOrigin="true" />
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
        <!-- in this example, we will only use synonyms at query time
        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
        -->
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
      <!--
        <tokenizer class="solr.StandardTokenizerFactory"/>
        -->
        <tokenizer class="org.apache.lucene.analysis.kr.KoreanTokenizerFactory"/>
        <filter class="org.apache.lucene.analysis.kr.KoreanFilterFactory" bigrammable="true" hasOrigin="true" />
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" />
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>
Retrieved from "http://chaehyun.kr/w/Solr"