Solr
From Chaehyun
(Difference between revisions)
(One intermediate revision not shown) | |||
Line 1: | Line 1: | ||
* 내가 만든 lib 포함 | * 내가 만든 lib 포함 | ||
- | ** solr3.6/example/ | + | ** solr3.6/example/solr/lib |
* schema.xml | * schema.xml | ||
Line 42: | Line 42: | ||
* 가격으로 boosting하기 | * 가격으로 boosting하기 | ||
** http://wiki.apache.org/solr/FunctionQuery#product | ** http://wiki.apache.org/solr/FunctionQuery#product | ||
- | ** http://localhost:8983/solr/select?defType=dismax&qf=title&q=revised&fl | + | ** http://localhost:8983/solr/select?defType=dismax&qf=title&q=revised&fl=*,score&bf=product(sold) |
- | =*,score&bf=product(sold) | + |
Latest revision as of 07:37, 29 June 2012
- 내가 만든 lib 포함
- solr3.6/example/solr/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>
- parameter 전다달
@Override public void init(Map<String,String> args){ super.init( args ); String v = args.get("whitePattern"); if( v != null ) { setWhitePattern(v); } }
- 가격으로 boosting하기