/solr/core/src/test-files/solr/collection1/conf/schema-bm25.xml

http://github.com/apache/lucene-solr · XML · 63 lines · 32 code · 10 blank · 21 comment · 0 complexity · 43dd4ba6be220992780511576b2616a6 MD5 · raw file

  1. <?xml version="1.0" ?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- Test schema file for BM25SimilarityFactory -->
  17. <schema name="test" version="1.0">
  18. <fieldType name="string" class="solr.StrField" omitNorms="true" positionIncrementGap="0"/>
  19. <!-- default parameters -->
  20. <fieldType name="text" class="solr.TextField">
  21. <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
  22. <similarity class="solr.BM25SimilarityFactory"/>
  23. </fieldType>
  24. <!-- with parameters -->
  25. <fieldType name="text_params" class="solr.TextField">
  26. <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
  27. <similarity class="solr.BM25SimilarityFactory">
  28. <float name="k1">1.2</float>
  29. <float name="b">0.76</float>
  30. </similarity>
  31. </fieldType>
  32. <!-- legacybm25 with default parameters -->
  33. <fieldType name="legacy_text" class="solr.TextField">
  34. <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
  35. <similarity class="solr.LegacyBM25SimilarityFactory"/>
  36. </fieldType>
  37. <!-- legacybm25 with parameters -->
  38. <fieldType name="legacy_text_params" class="solr.TextField">
  39. <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
  40. <similarity class="solr.LegacyBM25SimilarityFactory">
  41. <float name="k1">1.2</float>
  42. <float name="b">0.76</float>
  43. </similarity>
  44. </fieldType>
  45. <field name="id" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
  46. <field name="text" type="text" indexed="true" stored="false"/>
  47. <field name="text_params" type="text_params" indexed="true" stored="false"/>
  48. <field name="legacy_text" type="legacy_text" indexed="true" stored="false"/>
  49. <field name="legacy_text_params" type="legacy_text_params" indexed="true" stored="false"/>
  50. <uniqueKey>id</uniqueKey>
  51. </schema>