smartmachine 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +0 -0
- data/README.rdoc +87 -0
- data/bin/buildpacker +8 -0
- data/bin/prereceiver +8 -0
- data/bin/smartmachine +81 -0
- data/bin/smartrunner +28 -0
- data/lib/smart_machine.rb +24 -0
- data/lib/smart_machine/apps.rb +14 -0
- data/lib/smart_machine/apps/app.rb +182 -0
- data/lib/smart_machine/apps/rails.rb +250 -0
- data/lib/smart_machine/base.rb +11 -0
- data/lib/smart_machine/boot.rb +31 -0
- data/lib/smart_machine/buildpacker.rb +106 -0
- data/lib/smart_machine/credentials.rb +126 -0
- data/lib/smart_machine/docker.rb +144 -0
- data/lib/smart_machine/engine.rb +82 -0
- data/lib/smart_machine/engine/Dockerfile +27 -0
- data/lib/smart_machine/engine/buildpacks/rails/Dockerfile +21 -0
- data/lib/smart_machine/gem_version.rb +17 -0
- data/lib/smart_machine/grids.rb +15 -0
- data/lib/smart_machine/grids/elasticsearch.rb +97 -0
- data/lib/smart_machine/grids/elasticsearch/.keep +0 -0
- data/lib/smart_machine/grids/minio.rb +77 -0
- data/lib/smart_machine/grids/minio/.keep +0 -0
- data/lib/smart_machine/grids/mysql.rb +66 -0
- data/lib/smart_machine/grids/mysql/docker-entrypoint-initdb.d/.keep +0 -0
- data/lib/smart_machine/grids/nginx.rb +137 -0
- data/lib/smart_machine/grids/nginx/.keep +0 -0
- data/lib/smart_machine/grids/prereceiver.rb +170 -0
- data/lib/smart_machine/grids/prereceiver/Dockerfile +20 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/APKBUILD +49 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.confd +6 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.initd +43 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.pre-install +7 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/packages/main/x86_64/APKINDEX.tar.gz +0 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-1.1.1-r4.apk +0 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-doc-1.1.1-r4.apk +0 -0
- data/lib/smart_machine/grids/prereceiver/fcgiwrap/packages/main/x86_64/fcgiwrap-openrc-1.1.1-r4.apk +0 -0
- data/lib/smart_machine/grids/redis.rb +58 -0
- data/lib/smart_machine/grids/redis/.keep +0 -0
- data/lib/smart_machine/grids/solr.rb +99 -0
- data/lib/smart_machine/grids/solr/config/.keep +0 -0
- data/lib/smart_machine/grids/solr/config/README.txt +77 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/contractions_ca.txt +8 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/contractions_fr.txt +15 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/contractions_ga.txt +5 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/contractions_it.txt +23 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/hyphenations_ga.txt +5 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stemdict_nl.txt +6 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stoptags_ja.txt +420 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_ar.txt +125 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_bg.txt +193 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_ca.txt +220 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_cz.txt +172 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_da.txt +110 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_de.txt +294 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_el.txt +78 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_en.txt +54 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_es.txt +356 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_eu.txt +99 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_fa.txt +313 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_fi.txt +97 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_fr.txt +186 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_ga.txt +110 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_gl.txt +161 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_hi.txt +235 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_hu.txt +211 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_hy.txt +46 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_id.txt +359 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_it.txt +303 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_ja.txt +127 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_lv.txt +172 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_nl.txt +119 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_no.txt +194 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_pt.txt +253 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_ro.txt +233 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_ru.txt +243 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_sv.txt +133 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_th.txt +119 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/stopwords_tr.txt +212 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/lang/userdict_ja.txt +29 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/managed-schema +1007 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/params.json +20 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/protwords.txt +21 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/solrconfig.xml +1355 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/stopwords.txt +14 -0
- data/lib/smart_machine/grids/solr/config/configsets/_default/conf/synonyms.txt +29 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/_rest_managed.json +1 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_stopwords_english.json +38 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/_schema_analysis_synonyms_english.json +11 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/README.txt +11 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/kmeans-attributes.xml +19 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/lingo-attributes.xml +24 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/clustering/carrot2/stc-attributes.xml +19 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/currency.xml +67 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/elevate.xml +42 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ca.txt +8 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_fr.txt +15 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_ga.txt +5 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/contractions_it.txt +23 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/hyphenations_ga.txt +5 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stemdict_nl.txt +6 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stoptags_ja.txt +420 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ar.txt +125 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_bg.txt +193 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ca.txt +220 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ckb.txt +136 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_cz.txt +172 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_da.txt +110 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_de.txt +294 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_el.txt +78 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_en.txt +54 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_es.txt +356 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_eu.txt +99 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fa.txt +313 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fi.txt +97 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_fr.txt +186 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ga.txt +110 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_gl.txt +161 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hi.txt +235 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hu.txt +211 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_hy.txt +46 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_id.txt +359 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_it.txt +303 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ja.txt +127 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_lv.txt +172 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_nl.txt +119 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_no.txt +194 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_pt.txt +253 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ro.txt +233 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_ru.txt +243 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_sv.txt +133 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_th.txt +119 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/stopwords_tr.txt +212 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/lang/userdict_ja.txt +29 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/managed-schema +1187 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/mapping-FoldToASCII.txt +3813 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/params.json +11 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/protwords.txt +21 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/solrconfig.xml +1616 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/spellings.txt +2 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/stopwords.txt +14 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/synonyms.txt +29 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/update-script.js +53 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/README.txt +101 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/VM_global_library.vm +186 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/browse.vm +33 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster.vm +19 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/cluster_results.vm +31 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/debug.vm +28 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/did_you_mean.vm +11 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/error.vm +11 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_fields.vm +24 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_pivot.vm +12 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_queries.vm +12 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/facet_ranges.vm +23 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/facets.vm +10 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/footer.vm +43 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/head.vm +37 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/header.vm +7 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/hit.vm +25 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_grouped.vm +43 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/hit_plain.vm +25 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/join_doc.vm +20 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.css +48 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/jquery.autocomplete.js +763 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/layout.vm +24 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/main.css +231 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/mime_type_lists.vm +68 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_bottom.vm +22 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/pagination_top.vm +29 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/product_doc.vm +32 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/query.vm +42 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/query_form.vm +64 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/query_group.vm +43 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/query_spatial.vm +75 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/results_list.vm +22 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/richtext_doc.vm +153 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/suggest.vm +8 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/velocity/tabs.vm +50 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/xslt/example.xsl +132 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/xslt/example_atom.xsl +67 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/xslt/example_rss.xsl +66 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/xslt/luke.xsl +337 -0
- data/lib/smart_machine/grids/solr/config/configsets/sample_techproducts_configs/conf/xslt/updateXml.xsl +70 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/_rest_managed.json +1 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/admin-extra.html +31 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/currency.xml +67 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/elevate.xml +36 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/lang/stopwords_en.txt +54 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/mapping-ISOLatin1Accent.txt +246 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/protwords.txt +21 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/schema.xml +278 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/scripts.conf +24 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/solrconfig.xml +632 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/spellings.txt +2 -0
- data/lib/smart_machine/grids/solr/config/configsets/sunspot/conf/synonyms.txt +29 -0
- data/lib/smart_machine/grids/solr/config/lib/.keep +0 -0
- data/lib/smart_machine/grids/solr/config/solr.xml +53 -0
- data/lib/smart_machine/grids/solr/config/zoo.cfg +31 -0
- data/lib/smart_machine/grids/solr/docker-entrypoint-initdb.d/.keep +0 -0
- data/lib/smart_machine/grids/solr/sunspot/conf/schema.xml +278 -0
- data/lib/smart_machine/grids/solr/sunspot/conf/solrconfig.xml +632 -0
- data/lib/smart_machine/logger.rb +35 -0
- data/lib/smart_machine/machine.rb +192 -0
- data/lib/smart_machine/ssh.rb +43 -0
- data/lib/smart_machine/sync.rb +108 -0
- data/lib/smart_machine/templates/dotsmartmachine/apps/containers/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/apps/repositories/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/config/environment.rb +18 -0
- data/lib/smart_machine/templates/dotsmartmachine/config/users.yml +4 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/elasticsearch/data/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/elasticsearch/logs/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/minio/data/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/mysql/data/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/nginx/certificates/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/nginx/fastcgi.conf +11 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/nginx/htpasswd/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/nginx/nginx.tmpl +373 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/prereceiver/pre-receive +17 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/redis/data/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/grids/solr/solr/.keep +0 -0
- data/lib/smart_machine/templates/dotsmartmachine/tmp/.keep +0 -0
- data/lib/smart_machine/user.rb +38 -0
- data/lib/smart_machine/version.rb +10 -0
- metadata +297 -12
- data/README.md +0 -9
@@ -0,0 +1,20 @@
|
|
1
|
+
{"params":{
|
2
|
+
"query":{
|
3
|
+
"defType":"edismax",
|
4
|
+
"q.alt":"*:*",
|
5
|
+
"rows":"10",
|
6
|
+
"fl":"*,score",
|
7
|
+
"":{"v":0}
|
8
|
+
},
|
9
|
+
"facets":{
|
10
|
+
"facet":"on",
|
11
|
+
"facet.mincount": "1",
|
12
|
+
"":{"v":0}
|
13
|
+
},
|
14
|
+
"velocity":{
|
15
|
+
"wt": "velocity",
|
16
|
+
"v.template":"browse",
|
17
|
+
"v.layout": "layout",
|
18
|
+
"":{"v":0}
|
19
|
+
}
|
20
|
+
}}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# The ASF licenses this file to You under the Apache License, Version 2.0
|
2
|
+
# (the "License"); you may not use this file except in compliance with
|
3
|
+
# the License. You may obtain a copy of the License at
|
4
|
+
#
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and
|
11
|
+
# limitations under the License.
|
12
|
+
|
13
|
+
#-----------------------------------------------------------------------
|
14
|
+
# Use a protected word file to protect against the stemmer reducing two
|
15
|
+
# unrelated words to the same base word.
|
16
|
+
|
17
|
+
# Some non-words that normally won't be encountered,
|
18
|
+
# just to test that they won't be stemmed.
|
19
|
+
dontstems
|
20
|
+
zwhacky
|
21
|
+
|
@@ -0,0 +1,1355 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
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
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
-->
|
18
|
+
|
19
|
+
<!--
|
20
|
+
For more details about configurations options that may appear in
|
21
|
+
this file, see http://wiki.apache.org/solr/SolrConfigXml.
|
22
|
+
-->
|
23
|
+
<config>
|
24
|
+
<!-- In all configuration below, a prefix of "solr." for class names
|
25
|
+
is an alias that causes solr to search appropriate packages,
|
26
|
+
including org.apache.solr.(search|update|request|core|analysis)
|
27
|
+
|
28
|
+
You may also specify a fully qualified Java classname if you
|
29
|
+
have your own custom plugins.
|
30
|
+
-->
|
31
|
+
|
32
|
+
<!-- Controls what version of Lucene various components of Solr
|
33
|
+
adhere to. Generally, you want to use the latest version to
|
34
|
+
get all bug fixes and improvements. It is highly recommended
|
35
|
+
that you fully re-index after changing this setting as it can
|
36
|
+
affect both how text is indexed and queried.
|
37
|
+
-->
|
38
|
+
<luceneMatchVersion>8.0.0</luceneMatchVersion>
|
39
|
+
|
40
|
+
<!-- <lib/> directives can be used to instruct Solr to load any Jars
|
41
|
+
identified and use them to resolve any "plugins" specified in
|
42
|
+
your solrconfig.xml or schema.xml (ie: Analyzers, Request
|
43
|
+
Handlers, etc...).
|
44
|
+
|
45
|
+
All directories and paths are resolved relative to the
|
46
|
+
instanceDir.
|
47
|
+
|
48
|
+
Please note that <lib/> directives are processed in the order
|
49
|
+
that they appear in your solrconfig.xml file, and are "stacked"
|
50
|
+
on top of each other when building a ClassLoader - so if you have
|
51
|
+
plugin jars with dependencies on other jars, the "lower level"
|
52
|
+
dependency jars should be loaded first.
|
53
|
+
|
54
|
+
If a "./lib" directory exists in your instanceDir, all files
|
55
|
+
found in it are included as if you had used the following
|
56
|
+
syntax...
|
57
|
+
|
58
|
+
<lib dir="./lib" />
|
59
|
+
-->
|
60
|
+
|
61
|
+
<!-- A 'dir' option by itself adds any files found in the directory
|
62
|
+
to the classpath, this is useful for including all jars in a
|
63
|
+
directory.
|
64
|
+
|
65
|
+
When a 'regex' is specified in addition to a 'dir', only the
|
66
|
+
files in that directory which completely match the regex
|
67
|
+
(anchored on both ends) will be included.
|
68
|
+
|
69
|
+
If a 'dir' option (with or without a regex) is used and nothing
|
70
|
+
is found that matches, a warning will be logged.
|
71
|
+
|
72
|
+
The examples below can be used to load some solr-contribs along
|
73
|
+
with their external dependencies.
|
74
|
+
-->
|
75
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib" regex=".*\.jar" />
|
76
|
+
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-cell-\d.*\.jar" />
|
77
|
+
|
78
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/" regex=".*\.jar" />
|
79
|
+
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-clustering-\d.*\.jar" />
|
80
|
+
|
81
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/" regex=".*\.jar" />
|
82
|
+
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-langid-\d.*\.jar" />
|
83
|
+
|
84
|
+
<lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib" regex=".*\.jar" />
|
85
|
+
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-velocity-\d.*\.jar" />
|
86
|
+
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-ltr-\d.*\.jar" />
|
87
|
+
|
88
|
+
<!-- an exact 'path' can be used instead of a 'dir' to specify a
|
89
|
+
specific jar file. This will cause a serious error to be logged
|
90
|
+
if it can't be loaded.
|
91
|
+
-->
|
92
|
+
<!--
|
93
|
+
<lib path="../a-jar-that-does-not-exist.jar" />
|
94
|
+
-->
|
95
|
+
|
96
|
+
<!-- Data Directory
|
97
|
+
|
98
|
+
Used to specify an alternate directory to hold all index data
|
99
|
+
other than the default ./data under the Solr home. If
|
100
|
+
replication is in use, this should match the replication
|
101
|
+
configuration.
|
102
|
+
-->
|
103
|
+
<dataDir>${solr.data.dir:}</dataDir>
|
104
|
+
|
105
|
+
|
106
|
+
<!-- The DirectoryFactory to use for indexes.
|
107
|
+
|
108
|
+
solr.StandardDirectoryFactory is filesystem
|
109
|
+
based and tries to pick the best implementation for the current
|
110
|
+
JVM and platform. solr.NRTCachingDirectoryFactory, the default,
|
111
|
+
wraps solr.StandardDirectoryFactory and caches small files in memory
|
112
|
+
for better NRT performance.
|
113
|
+
|
114
|
+
One can force a particular implementation via solr.MMapDirectoryFactory,
|
115
|
+
solr.NIOFSDirectoryFactory, or solr.SimpleFSDirectoryFactory.
|
116
|
+
|
117
|
+
solr.RAMDirectoryFactory is memory based and not persistent.
|
118
|
+
-->
|
119
|
+
<directoryFactory name="DirectoryFactory"
|
120
|
+
class="${solr.directoryFactory:solr.NRTCachingDirectoryFactory}"/>
|
121
|
+
|
122
|
+
<!-- The CodecFactory for defining the format of the inverted index.
|
123
|
+
The default implementation is SchemaCodecFactory, which is the official Lucene
|
124
|
+
index format, but hooks into the schema to provide per-field customization of
|
125
|
+
the postings lists and per-document values in the fieldType element
|
126
|
+
(postingsFormat/docValuesFormat). Note that most of the alternative implementations
|
127
|
+
are experimental, so if you choose to customize the index format, it's a good
|
128
|
+
idea to convert back to the official format e.g. via IndexWriter.addIndexes(IndexReader)
|
129
|
+
before upgrading to a newer version to avoid unnecessary reindexing.
|
130
|
+
A "compressionMode" string element can be added to <codecFactory> to choose
|
131
|
+
between the existing compression modes in the default codec: "BEST_SPEED" (default)
|
132
|
+
or "BEST_COMPRESSION".
|
133
|
+
-->
|
134
|
+
<codecFactory class="solr.SchemaCodecFactory"/>
|
135
|
+
|
136
|
+
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
137
|
+
Index Config - These settings control low-level behavior of indexing
|
138
|
+
Most example settings here show the default value, but are commented
|
139
|
+
out, to more easily see where customizations have been made.
|
140
|
+
|
141
|
+
Note: This replaces <indexDefaults> and <mainIndex> from older versions
|
142
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
143
|
+
<indexConfig>
|
144
|
+
<!-- maxFieldLength was removed in 4.0. To get similar behavior, include a
|
145
|
+
LimitTokenCountFilterFactory in your fieldType definition. E.g.
|
146
|
+
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="10000"/>
|
147
|
+
-->
|
148
|
+
<!-- Maximum time to wait for a write lock (ms) for an IndexWriter. Default: 1000 -->
|
149
|
+
<!-- <writeLockTimeout>1000</writeLockTimeout> -->
|
150
|
+
|
151
|
+
<!-- Expert: Enabling compound file will use less files for the index,
|
152
|
+
using fewer file descriptors on the expense of performance decrease.
|
153
|
+
Default in Lucene is "true". Default in Solr is "false" (since 3.6) -->
|
154
|
+
<!-- <useCompoundFile>false</useCompoundFile> -->
|
155
|
+
|
156
|
+
<!-- ramBufferSizeMB sets the amount of RAM that may be used by Lucene
|
157
|
+
indexing for buffering added documents and deletions before they are
|
158
|
+
flushed to the Directory.
|
159
|
+
maxBufferedDocs sets a limit on the number of documents buffered
|
160
|
+
before flushing.
|
161
|
+
If both ramBufferSizeMB and maxBufferedDocs is set, then
|
162
|
+
Lucene will flush based on whichever limit is hit first. -->
|
163
|
+
<!-- <ramBufferSizeMB>100</ramBufferSizeMB> -->
|
164
|
+
<!-- <maxBufferedDocs>1000</maxBufferedDocs> -->
|
165
|
+
|
166
|
+
<!-- Expert: Merge Policy
|
167
|
+
The Merge Policy in Lucene controls how merging of segments is done.
|
168
|
+
The default since Solr/Lucene 3.3 is TieredMergePolicy.
|
169
|
+
The default since Lucene 2.3 was the LogByteSizeMergePolicy,
|
170
|
+
Even older versions of Lucene used LogDocMergePolicy.
|
171
|
+
-->
|
172
|
+
<!--
|
173
|
+
<mergePolicyFactory class="org.apache.solr.index.TieredMergePolicyFactory">
|
174
|
+
<int name="maxMergeAtOnce">10</int>
|
175
|
+
<int name="segmentsPerTier">10</int>
|
176
|
+
<double name="noCFSRatio">0.1</double>
|
177
|
+
</mergePolicyFactory>
|
178
|
+
-->
|
179
|
+
|
180
|
+
<!-- Expert: Merge Scheduler
|
181
|
+
The Merge Scheduler in Lucene controls how merges are
|
182
|
+
performed. The ConcurrentMergeScheduler (Lucene 2.3 default)
|
183
|
+
can perform merges in the background using separate threads.
|
184
|
+
The SerialMergeScheduler (Lucene 2.2 default) does not.
|
185
|
+
-->
|
186
|
+
<!--
|
187
|
+
<mergeScheduler class="org.apache.lucene.index.ConcurrentMergeScheduler"/>
|
188
|
+
-->
|
189
|
+
|
190
|
+
<!-- LockFactory
|
191
|
+
|
192
|
+
This option specifies which Lucene LockFactory implementation
|
193
|
+
to use.
|
194
|
+
|
195
|
+
single = SingleInstanceLockFactory - suggested for a
|
196
|
+
read-only index or when there is no possibility of
|
197
|
+
another process trying to modify the index.
|
198
|
+
native = NativeFSLockFactory - uses OS native file locking.
|
199
|
+
Do not use when multiple solr webapps in the same
|
200
|
+
JVM are attempting to share a single index.
|
201
|
+
simple = SimpleFSLockFactory - uses a plain file for locking
|
202
|
+
|
203
|
+
Defaults: 'native' is default for Solr3.6 and later, otherwise
|
204
|
+
'simple' is the default
|
205
|
+
|
206
|
+
More details on the nuances of each LockFactory...
|
207
|
+
http://wiki.apache.org/lucene-java/AvailableLockFactories
|
208
|
+
-->
|
209
|
+
<lockType>${solr.lock.type:native}</lockType>
|
210
|
+
|
211
|
+
<!-- Commit Deletion Policy
|
212
|
+
Custom deletion policies can be specified here. The class must
|
213
|
+
implement org.apache.lucene.index.IndexDeletionPolicy.
|
214
|
+
|
215
|
+
The default Solr IndexDeletionPolicy implementation supports
|
216
|
+
deleting index commit points on number of commits, age of
|
217
|
+
commit point and optimized status.
|
218
|
+
|
219
|
+
The latest commit point should always be preserved regardless
|
220
|
+
of the criteria.
|
221
|
+
-->
|
222
|
+
<!--
|
223
|
+
<deletionPolicy class="solr.SolrDeletionPolicy">
|
224
|
+
-->
|
225
|
+
<!-- The number of commit points to be kept -->
|
226
|
+
<!-- <str name="maxCommitsToKeep">1</str> -->
|
227
|
+
<!-- The number of optimized commit points to be kept -->
|
228
|
+
<!-- <str name="maxOptimizedCommitsToKeep">0</str> -->
|
229
|
+
<!--
|
230
|
+
Delete all commit points once they have reached the given age.
|
231
|
+
Supports DateMathParser syntax e.g.
|
232
|
+
-->
|
233
|
+
<!--
|
234
|
+
<str name="maxCommitAge">30MINUTES</str>
|
235
|
+
<str name="maxCommitAge">1DAY</str>
|
236
|
+
-->
|
237
|
+
<!--
|
238
|
+
</deletionPolicy>
|
239
|
+
-->
|
240
|
+
|
241
|
+
<!-- Lucene Infostream
|
242
|
+
|
243
|
+
To aid in advanced debugging, Lucene provides an "InfoStream"
|
244
|
+
of detailed information when indexing.
|
245
|
+
|
246
|
+
Setting The value to true will instruct the underlying Lucene
|
247
|
+
IndexWriter to write its debugging info the specified file
|
248
|
+
-->
|
249
|
+
<!-- <infoStream file="INFOSTREAM.txt">false</infoStream> -->
|
250
|
+
</indexConfig>
|
251
|
+
|
252
|
+
|
253
|
+
<!-- JMX
|
254
|
+
|
255
|
+
This example enables JMX if and only if an existing MBeanServer
|
256
|
+
is found, use this if you want to configure JMX through JVM
|
257
|
+
parameters. Remove this to disable exposing Solr configuration
|
258
|
+
and statistics to JMX.
|
259
|
+
|
260
|
+
For more details see http://wiki.apache.org/solr/SolrJmx
|
261
|
+
-->
|
262
|
+
<jmx />
|
263
|
+
<!-- If you want to connect to a particular server, specify the
|
264
|
+
agentId
|
265
|
+
-->
|
266
|
+
<!-- <jmx agentId="myAgent" /> -->
|
267
|
+
<!-- If you want to start a new MBeanServer, specify the serviceUrl -->
|
268
|
+
<!-- <jmx serviceUrl="service:jmx:rmi:///jndi/rmi://localhost:9999/solr"/>
|
269
|
+
-->
|
270
|
+
|
271
|
+
<!-- The default high-performance update handler -->
|
272
|
+
<updateHandler class="solr.DirectUpdateHandler2">
|
273
|
+
|
274
|
+
<!-- Enables a transaction log, used for real-time get, durability, and
|
275
|
+
and solr cloud replica recovery. The log can grow as big as
|
276
|
+
uncommitted changes to the index, so use of a hard autoCommit
|
277
|
+
is recommended (see below).
|
278
|
+
"dir" - the target directory for transaction logs, defaults to the
|
279
|
+
solr data directory.
|
280
|
+
"numVersionBuckets" - sets the number of buckets used to keep
|
281
|
+
track of max version values when checking for re-ordered
|
282
|
+
updates; increase this value to reduce the cost of
|
283
|
+
synchronizing access to version buckets during high-volume
|
284
|
+
indexing, this requires 8 bytes (long) * numVersionBuckets
|
285
|
+
of heap space per Solr core.
|
286
|
+
-->
|
287
|
+
<updateLog>
|
288
|
+
<str name="dir">${solr.ulog.dir:}</str>
|
289
|
+
<int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
|
290
|
+
</updateLog>
|
291
|
+
|
292
|
+
<!-- AutoCommit
|
293
|
+
|
294
|
+
Perform a hard commit automatically under certain conditions.
|
295
|
+
Instead of enabling autoCommit, consider using "commitWithin"
|
296
|
+
when adding documents.
|
297
|
+
|
298
|
+
http://wiki.apache.org/solr/UpdateXmlMessages
|
299
|
+
|
300
|
+
maxDocs - Maximum number of documents to add since the last
|
301
|
+
commit before automatically triggering a new commit.
|
302
|
+
|
303
|
+
maxTime - Maximum amount of time in ms that is allowed to pass
|
304
|
+
since a document was added before automatically
|
305
|
+
triggering a new commit.
|
306
|
+
openSearcher - if false, the commit causes recent index changes
|
307
|
+
to be flushed to stable storage, but does not cause a new
|
308
|
+
searcher to be opened to make those changes visible.
|
309
|
+
|
310
|
+
If the updateLog is enabled, then it's highly recommended to
|
311
|
+
have some sort of hard autoCommit to limit the log size.
|
312
|
+
-->
|
313
|
+
<autoCommit>
|
314
|
+
<maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
|
315
|
+
<openSearcher>false</openSearcher>
|
316
|
+
</autoCommit>
|
317
|
+
|
318
|
+
<!-- softAutoCommit is like autoCommit except it causes a
|
319
|
+
'soft' commit which only ensures that changes are visible
|
320
|
+
but does not ensure that data is synced to disk. This is
|
321
|
+
faster and more near-realtime friendly than a hard commit.
|
322
|
+
-->
|
323
|
+
|
324
|
+
<autoSoftCommit>
|
325
|
+
<maxTime>${solr.autoSoftCommit.maxTime:-1}</maxTime>
|
326
|
+
</autoSoftCommit>
|
327
|
+
|
328
|
+
<!-- Update Related Event Listeners
|
329
|
+
|
330
|
+
Various IndexWriter related events can trigger Listeners to
|
331
|
+
take actions.
|
332
|
+
|
333
|
+
postCommit - fired after every commit or optimize command
|
334
|
+
postOptimize - fired after every optimize command
|
335
|
+
-->
|
336
|
+
|
337
|
+
</updateHandler>
|
338
|
+
|
339
|
+
<!-- IndexReaderFactory
|
340
|
+
|
341
|
+
Use the following format to specify a custom IndexReaderFactory,
|
342
|
+
which allows for alternate IndexReader implementations.
|
343
|
+
|
344
|
+
** Experimental Feature **
|
345
|
+
|
346
|
+
Please note - Using a custom IndexReaderFactory may prevent
|
347
|
+
certain other features from working. The API to
|
348
|
+
IndexReaderFactory may change without warning or may even be
|
349
|
+
removed from future releases if the problems cannot be
|
350
|
+
resolved.
|
351
|
+
|
352
|
+
|
353
|
+
** Features that may not work with custom IndexReaderFactory **
|
354
|
+
|
355
|
+
The ReplicationHandler assumes a disk-resident index. Using a
|
356
|
+
custom IndexReader implementation may cause incompatibility
|
357
|
+
with ReplicationHandler and may cause replication to not work
|
358
|
+
correctly. See SOLR-1366 for details.
|
359
|
+
|
360
|
+
-->
|
361
|
+
<!--
|
362
|
+
<indexReaderFactory name="IndexReaderFactory" class="package.class">
|
363
|
+
<str name="someArg">Some Value</str>
|
364
|
+
</indexReaderFactory >
|
365
|
+
-->
|
366
|
+
|
367
|
+
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
368
|
+
Query section - these settings control query time things like caches
|
369
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
370
|
+
<query>
|
371
|
+
|
372
|
+
<!-- Maximum number of clauses in each BooleanQuery, an exception
|
373
|
+
is thrown if exceeded. It is safe to increase or remove this setting,
|
374
|
+
since it is purely an arbitrary limit to try and catch user errors where
|
375
|
+
large boolean queries may not be the best implementation choice.
|
376
|
+
-->
|
377
|
+
<maxBooleanClauses>1024</maxBooleanClauses>
|
378
|
+
|
379
|
+
<!-- Solr Internal Query Caches
|
380
|
+
|
381
|
+
There are two implementations of cache available for Solr,
|
382
|
+
LRUCache, based on a synchronized LinkedHashMap, and
|
383
|
+
FastLRUCache, based on a ConcurrentHashMap.
|
384
|
+
|
385
|
+
FastLRUCache has faster gets and slower puts in single
|
386
|
+
threaded operation and thus is generally faster than LRUCache
|
387
|
+
when the hit ratio of the cache is high (> 75%), and may be
|
388
|
+
faster under other scenarios on multi-cpu systems.
|
389
|
+
-->
|
390
|
+
|
391
|
+
<!-- Filter Cache
|
392
|
+
|
393
|
+
Cache used by SolrIndexSearcher for filters (DocSets),
|
394
|
+
unordered sets of *all* documents that match a query. When a
|
395
|
+
new searcher is opened, its caches may be prepopulated or
|
396
|
+
"autowarmed" using data from caches in the old searcher.
|
397
|
+
autowarmCount is the number of items to prepopulate. For
|
398
|
+
LRUCache, the autowarmed items will be the most recently
|
399
|
+
accessed items.
|
400
|
+
|
401
|
+
Parameters:
|
402
|
+
class - the SolrCache implementation LRUCache or
|
403
|
+
(LRUCache or FastLRUCache)
|
404
|
+
size - the maximum number of entries in the cache
|
405
|
+
initialSize - the initial capacity (number of entries) of
|
406
|
+
the cache. (see java.util.HashMap)
|
407
|
+
autowarmCount - the number of entries to prepopulate from
|
408
|
+
and old cache.
|
409
|
+
maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
|
410
|
+
to occupy. Note that when this option is specified, the size
|
411
|
+
and initialSize parameters are ignored.
|
412
|
+
-->
|
413
|
+
<filterCache class="solr.FastLRUCache"
|
414
|
+
size="512"
|
415
|
+
initialSize="512"
|
416
|
+
autowarmCount="0"/>
|
417
|
+
|
418
|
+
<!-- Query Result Cache
|
419
|
+
|
420
|
+
Caches results of searches - ordered lists of document ids
|
421
|
+
(DocList) based on a query, a sort, and the range of documents requested.
|
422
|
+
Additional supported parameter by LRUCache:
|
423
|
+
maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
|
424
|
+
to occupy
|
425
|
+
-->
|
426
|
+
<queryResultCache class="solr.LRUCache"
|
427
|
+
size="512"
|
428
|
+
initialSize="512"
|
429
|
+
autowarmCount="0"/>
|
430
|
+
|
431
|
+
<!-- Document Cache
|
432
|
+
|
433
|
+
Caches Lucene Document objects (the stored fields for each
|
434
|
+
document). Since Lucene internal document ids are transient,
|
435
|
+
this cache will not be autowarmed.
|
436
|
+
-->
|
437
|
+
<documentCache class="solr.LRUCache"
|
438
|
+
size="512"
|
439
|
+
initialSize="512"
|
440
|
+
autowarmCount="0"/>
|
441
|
+
|
442
|
+
<!-- custom cache currently used by block join -->
|
443
|
+
<cache name="perSegFilter"
|
444
|
+
class="solr.search.LRUCache"
|
445
|
+
size="10"
|
446
|
+
initialSize="0"
|
447
|
+
autowarmCount="10"
|
448
|
+
regenerator="solr.NoOpRegenerator" />
|
449
|
+
|
450
|
+
<!-- Field Value Cache
|
451
|
+
|
452
|
+
Cache used to hold field values that are quickly accessible
|
453
|
+
by document id. The fieldValueCache is created by default
|
454
|
+
even if not configured here.
|
455
|
+
-->
|
456
|
+
<!--
|
457
|
+
<fieldValueCache class="solr.FastLRUCache"
|
458
|
+
size="512"
|
459
|
+
autowarmCount="128"
|
460
|
+
showItems="32" />
|
461
|
+
-->
|
462
|
+
|
463
|
+
<!-- Custom Cache
|
464
|
+
|
465
|
+
Example of a generic cache. These caches may be accessed by
|
466
|
+
name through SolrIndexSearcher.getCache(),cacheLookup(), and
|
467
|
+
cacheInsert(). The purpose is to enable easy caching of
|
468
|
+
user/application level data. The regenerator argument should
|
469
|
+
be specified as an implementation of solr.CacheRegenerator
|
470
|
+
if autowarming is desired.
|
471
|
+
-->
|
472
|
+
<!--
|
473
|
+
<cache name="myUserCache"
|
474
|
+
class="solr.LRUCache"
|
475
|
+
size="4096"
|
476
|
+
initialSize="1024"
|
477
|
+
autowarmCount="1024"
|
478
|
+
regenerator="com.mycompany.MyRegenerator"
|
479
|
+
/>
|
480
|
+
-->
|
481
|
+
|
482
|
+
|
483
|
+
<!-- Lazy Field Loading
|
484
|
+
|
485
|
+
If true, stored fields that are not requested will be loaded
|
486
|
+
lazily. This can result in a significant speed improvement
|
487
|
+
if the usual case is to not load all stored fields,
|
488
|
+
especially if the skipped fields are large compressed text
|
489
|
+
fields.
|
490
|
+
-->
|
491
|
+
<enableLazyFieldLoading>true</enableLazyFieldLoading>
|
492
|
+
|
493
|
+
<!-- Use Filter For Sorted Query
|
494
|
+
|
495
|
+
A possible optimization that attempts to use a filter to
|
496
|
+
satisfy a search. If the requested sort does not include
|
497
|
+
score, then the filterCache will be checked for a filter
|
498
|
+
matching the query. If found, the filter will be used as the
|
499
|
+
source of document ids, and then the sort will be applied to
|
500
|
+
that.
|
501
|
+
|
502
|
+
For most situations, this will not be useful unless you
|
503
|
+
frequently get the same search repeatedly with different sort
|
504
|
+
options, and none of them ever use "score"
|
505
|
+
-->
|
506
|
+
<!--
|
507
|
+
<useFilterForSortedQuery>true</useFilterForSortedQuery>
|
508
|
+
-->
|
509
|
+
|
510
|
+
<!-- Result Window Size
|
511
|
+
|
512
|
+
An optimization for use with the queryResultCache. When a search
|
513
|
+
is requested, a superset of the requested number of document ids
|
514
|
+
are collected. For example, if a search for a particular query
|
515
|
+
requests matching documents 10 through 19, and queryWindowSize is 50,
|
516
|
+
then documents 0 through 49 will be collected and cached. Any further
|
517
|
+
requests in that range can be satisfied via the cache.
|
518
|
+
-->
|
519
|
+
<queryResultWindowSize>20</queryResultWindowSize>
|
520
|
+
|
521
|
+
<!-- Maximum number of documents to cache for any entry in the
|
522
|
+
queryResultCache.
|
523
|
+
-->
|
524
|
+
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
|
525
|
+
|
526
|
+
<!-- Query Related Event Listeners
|
527
|
+
|
528
|
+
Various IndexSearcher related events can trigger Listeners to
|
529
|
+
take actions.
|
530
|
+
|
531
|
+
newSearcher - fired whenever a new searcher is being prepared
|
532
|
+
and there is a current searcher handling requests (aka
|
533
|
+
registered). It can be used to prime certain caches to
|
534
|
+
prevent long request times for certain requests.
|
535
|
+
|
536
|
+
firstSearcher - fired whenever a new searcher is being
|
537
|
+
prepared but there is no current registered searcher to handle
|
538
|
+
requests or to gain autowarming data from.
|
539
|
+
|
540
|
+
|
541
|
+
-->
|
542
|
+
<!-- QuerySenderListener takes an array of NamedList and executes a
|
543
|
+
local query request for each NamedList in sequence.
|
544
|
+
-->
|
545
|
+
<listener event="newSearcher" class="solr.QuerySenderListener">
|
546
|
+
<arr name="queries">
|
547
|
+
<!--
|
548
|
+
<lst><str name="q">solr</str><str name="sort">price asc</str></lst>
|
549
|
+
<lst><str name="q">rocks</str><str name="sort">weight asc</str></lst>
|
550
|
+
-->
|
551
|
+
</arr>
|
552
|
+
</listener>
|
553
|
+
<listener event="firstSearcher" class="solr.QuerySenderListener">
|
554
|
+
<arr name="queries">
|
555
|
+
<!--
|
556
|
+
<lst>
|
557
|
+
<str name="q">static firstSearcher warming in solrconfig.xml</str>
|
558
|
+
</lst>
|
559
|
+
-->
|
560
|
+
</arr>
|
561
|
+
</listener>
|
562
|
+
|
563
|
+
<!-- Use Cold Searcher
|
564
|
+
|
565
|
+
If a search request comes in and there is no current
|
566
|
+
registered searcher, then immediately register the still
|
567
|
+
warming searcher and use it. If "false" then all requests
|
568
|
+
will block until the first searcher is done warming.
|
569
|
+
-->
|
570
|
+
<useColdSearcher>false</useColdSearcher>
|
571
|
+
|
572
|
+
</query>
|
573
|
+
|
574
|
+
|
575
|
+
<!-- Request Dispatcher
|
576
|
+
|
577
|
+
This section contains instructions for how the SolrDispatchFilter
|
578
|
+
should behave when processing requests for this SolrCore.
|
579
|
+
|
580
|
+
-->
|
581
|
+
<requestDispatcher>
|
582
|
+
<!-- Request Parsing
|
583
|
+
|
584
|
+
These settings indicate how Solr Requests may be parsed, and
|
585
|
+
what restrictions may be placed on the ContentStreams from
|
586
|
+
those requests
|
587
|
+
|
588
|
+
enableRemoteStreaming - enables use of the stream.file
|
589
|
+
and stream.url parameters for specifying remote streams.
|
590
|
+
|
591
|
+
multipartUploadLimitInKB - specifies the max size (in KiB) of
|
592
|
+
Multipart File Uploads that Solr will allow in a Request.
|
593
|
+
|
594
|
+
formdataUploadLimitInKB - specifies the max size (in KiB) of
|
595
|
+
form data (application/x-www-form-urlencoded) sent via
|
596
|
+
POST. You can use POST to pass request parameters not
|
597
|
+
fitting into the URL.
|
598
|
+
|
599
|
+
addHttpRequestToContext - if set to true, it will instruct
|
600
|
+
the requestParsers to include the original HttpServletRequest
|
601
|
+
object in the context map of the SolrQueryRequest under the
|
602
|
+
key "httpRequest". It will not be used by any of the existing
|
603
|
+
Solr components, but may be useful when developing custom
|
604
|
+
plugins.
|
605
|
+
|
606
|
+
*** WARNING ***
|
607
|
+
Before enabling remote streaming, you should make sure your
|
608
|
+
system has authentication enabled.
|
609
|
+
|
610
|
+
<requestParsers enableRemoteStreaming="false"
|
611
|
+
multipartUploadLimitInKB="-1"
|
612
|
+
formdataUploadLimitInKB="-1"
|
613
|
+
addHttpRequestToContext="false"/>
|
614
|
+
-->
|
615
|
+
|
616
|
+
<!-- HTTP Caching
|
617
|
+
|
618
|
+
Set HTTP caching related parameters (for proxy caches and clients).
|
619
|
+
|
620
|
+
The options below instruct Solr not to output any HTTP Caching
|
621
|
+
related headers
|
622
|
+
-->
|
623
|
+
<httpCaching never304="true" />
|
624
|
+
<!-- If you include a <cacheControl> directive, it will be used to
|
625
|
+
generate a Cache-Control header (as well as an Expires header
|
626
|
+
if the value contains "max-age=")
|
627
|
+
|
628
|
+
By default, no Cache-Control header is generated.
|
629
|
+
|
630
|
+
You can use the <cacheControl> option even if you have set
|
631
|
+
never304="true"
|
632
|
+
-->
|
633
|
+
<!--
|
634
|
+
<httpCaching never304="true" >
|
635
|
+
<cacheControl>max-age=30, public</cacheControl>
|
636
|
+
</httpCaching>
|
637
|
+
-->
|
638
|
+
<!-- To enable Solr to respond with automatically generated HTTP
|
639
|
+
Caching headers, and to response to Cache Validation requests
|
640
|
+
correctly, set the value of never304="false"
|
641
|
+
|
642
|
+
This will cause Solr to generate Last-Modified and ETag
|
643
|
+
headers based on the properties of the Index.
|
644
|
+
|
645
|
+
The following options can also be specified to affect the
|
646
|
+
values of these headers...
|
647
|
+
|
648
|
+
lastModFrom - the default value is "openTime" which means the
|
649
|
+
Last-Modified value (and validation against If-Modified-Since
|
650
|
+
requests) will all be relative to when the current Searcher
|
651
|
+
was opened. You can change it to lastModFrom="dirLastMod" if
|
652
|
+
you want the value to exactly correspond to when the physical
|
653
|
+
index was last modified.
|
654
|
+
|
655
|
+
etagSeed="..." is an option you can change to force the ETag
|
656
|
+
header (and validation against If-None-Match requests) to be
|
657
|
+
different even if the index has not changed (ie: when making
|
658
|
+
significant changes to your config file)
|
659
|
+
|
660
|
+
(lastModifiedFrom and etagSeed are both ignored if you use
|
661
|
+
the never304="true" option)
|
662
|
+
-->
|
663
|
+
<!--
|
664
|
+
<httpCaching lastModifiedFrom="openTime"
|
665
|
+
etagSeed="Solr">
|
666
|
+
<cacheControl>max-age=30, public</cacheControl>
|
667
|
+
</httpCaching>
|
668
|
+
-->
|
669
|
+
</requestDispatcher>
|
670
|
+
|
671
|
+
<!-- Request Handlers
|
672
|
+
|
673
|
+
http://wiki.apache.org/solr/SolrRequestHandler
|
674
|
+
|
675
|
+
Incoming queries will be dispatched to a specific handler by name
|
676
|
+
based on the path specified in the request.
|
677
|
+
|
678
|
+
If a Request Handler is declared with startup="lazy", then it will
|
679
|
+
not be initialized until the first request that uses it.
|
680
|
+
|
681
|
+
-->
|
682
|
+
<!-- SearchHandler
|
683
|
+
|
684
|
+
http://wiki.apache.org/solr/SearchHandler
|
685
|
+
|
686
|
+
For processing Search Queries, the primary Request Handler
|
687
|
+
provided with Solr is "SearchHandler" It delegates to a sequent
|
688
|
+
of SearchComponents (see below) and supports distributed
|
689
|
+
queries across multiple shards
|
690
|
+
-->
|
691
|
+
<requestHandler name="/select" class="solr.SearchHandler">
|
692
|
+
<!-- default values for query parameters can be specified, these
|
693
|
+
will be overridden by parameters in the request
|
694
|
+
-->
|
695
|
+
<lst name="defaults">
|
696
|
+
<str name="echoParams">explicit</str>
|
697
|
+
<int name="rows">10</int>
|
698
|
+
<!-- Default search field
|
699
|
+
<str name="df">text</str>
|
700
|
+
-->
|
701
|
+
<!-- Change from JSON to XML format (the default prior to Solr 7.0)
|
702
|
+
<str name="wt">xml</str>
|
703
|
+
-->
|
704
|
+
</lst>
|
705
|
+
<!-- In addition to defaults, "appends" params can be specified
|
706
|
+
to identify values which should be appended to the list of
|
707
|
+
multi-val params from the query (or the existing "defaults").
|
708
|
+
-->
|
709
|
+
<!-- In this example, the param "fq=instock:true" would be appended to
|
710
|
+
any query time fq params the user may specify, as a mechanism for
|
711
|
+
partitioning the index, independent of any user selected filtering
|
712
|
+
that may also be desired (perhaps as a result of faceted searching).
|
713
|
+
|
714
|
+
NOTE: there is *absolutely* nothing a client can do to prevent these
|
715
|
+
"appends" values from being used, so don't use this mechanism
|
716
|
+
unless you are sure you always want it.
|
717
|
+
-->
|
718
|
+
<!--
|
719
|
+
<lst name="appends">
|
720
|
+
<str name="fq">inStock:true</str>
|
721
|
+
</lst>
|
722
|
+
-->
|
723
|
+
<!-- "invariants" are a way of letting the Solr maintainer lock down
|
724
|
+
the options available to Solr clients. Any params values
|
725
|
+
specified here are used regardless of what values may be specified
|
726
|
+
in either the query, the "defaults", or the "appends" params.
|
727
|
+
|
728
|
+
In this example, the facet.field and facet.query params would
|
729
|
+
be fixed, limiting the facets clients can use. Faceting is
|
730
|
+
not turned on by default - but if the client does specify
|
731
|
+
facet=true in the request, these are the only facets they
|
732
|
+
will be able to see counts for; regardless of what other
|
733
|
+
facet.field or facet.query params they may specify.
|
734
|
+
|
735
|
+
NOTE: there is *absolutely* nothing a client can do to prevent these
|
736
|
+
"invariants" values from being used, so don't use this mechanism
|
737
|
+
unless you are sure you always want it.
|
738
|
+
-->
|
739
|
+
<!--
|
740
|
+
<lst name="invariants">
|
741
|
+
<str name="facet.field">cat</str>
|
742
|
+
<str name="facet.field">manu_exact</str>
|
743
|
+
<str name="facet.query">price:[* TO 500]</str>
|
744
|
+
<str name="facet.query">price:[500 TO *]</str>
|
745
|
+
</lst>
|
746
|
+
-->
|
747
|
+
<!-- If the default list of SearchComponents is not desired, that
|
748
|
+
list can either be overridden completely, or components can be
|
749
|
+
prepended or appended to the default list. (see below)
|
750
|
+
-->
|
751
|
+
<!--
|
752
|
+
<arr name="components">
|
753
|
+
<str>nameOfCustomComponent1</str>
|
754
|
+
<str>nameOfCustomComponent2</str>
|
755
|
+
</arr>
|
756
|
+
-->
|
757
|
+
</requestHandler>
|
758
|
+
|
759
|
+
<!-- A request handler that returns indented JSON by default -->
|
760
|
+
<requestHandler name="/query" class="solr.SearchHandler">
|
761
|
+
<lst name="defaults">
|
762
|
+
<str name="echoParams">explicit</str>
|
763
|
+
<str name="wt">json</str>
|
764
|
+
<str name="indent">true</str>
|
765
|
+
</lst>
|
766
|
+
</requestHandler>
|
767
|
+
|
768
|
+
|
769
|
+
<!-- A Robust Example
|
770
|
+
|
771
|
+
This example SearchHandler declaration shows off usage of the
|
772
|
+
SearchHandler with many defaults declared
|
773
|
+
|
774
|
+
Note that multiple instances of the same Request Handler
|
775
|
+
(SearchHandler) can be registered multiple times with different
|
776
|
+
names (and different init parameters)
|
777
|
+
-->
|
778
|
+
<requestHandler name="/browse" class="solr.SearchHandler" useParams="query,facets,velocity,browse">
|
779
|
+
<lst name="defaults">
|
780
|
+
<str name="echoParams">explicit</str>
|
781
|
+
</lst>
|
782
|
+
</requestHandler>
|
783
|
+
|
784
|
+
<initParams path="/update/**,/query,/select,/tvrh,/elevate,/spell,/browse">
|
785
|
+
<lst name="defaults">
|
786
|
+
<str name="df">_text_</str>
|
787
|
+
</lst>
|
788
|
+
</initParams>
|
789
|
+
|
790
|
+
<!-- Solr Cell Update Request Handler
|
791
|
+
|
792
|
+
http://wiki.apache.org/solr/ExtractingRequestHandler
|
793
|
+
|
794
|
+
-->
|
795
|
+
<requestHandler name="/update/extract"
|
796
|
+
startup="lazy"
|
797
|
+
class="solr.extraction.ExtractingRequestHandler" >
|
798
|
+
<lst name="defaults">
|
799
|
+
<str name="lowernames">true</str>
|
800
|
+
<str name="fmap.content">_text_</str>
|
801
|
+
</lst>
|
802
|
+
</requestHandler>
|
803
|
+
|
804
|
+
<!-- Search Components
|
805
|
+
|
806
|
+
Search components are registered to SolrCore and used by
|
807
|
+
instances of SearchHandler (which can access them by name)
|
808
|
+
|
809
|
+
By default, the following components are available:
|
810
|
+
|
811
|
+
<searchComponent name="query" class="solr.QueryComponent" />
|
812
|
+
<searchComponent name="facet" class="solr.FacetComponent" />
|
813
|
+
<searchComponent name="mlt" class="solr.MoreLikeThisComponent" />
|
814
|
+
<searchComponent name="highlight" class="solr.HighlightComponent" />
|
815
|
+
<searchComponent name="stats" class="solr.StatsComponent" />
|
816
|
+
<searchComponent name="debug" class="solr.DebugComponent" />
|
817
|
+
|
818
|
+
Default configuration in a requestHandler would look like:
|
819
|
+
|
820
|
+
<arr name="components">
|
821
|
+
<str>query</str>
|
822
|
+
<str>facet</str>
|
823
|
+
<str>mlt</str>
|
824
|
+
<str>highlight</str>
|
825
|
+
<str>stats</str>
|
826
|
+
<str>debug</str>
|
827
|
+
</arr>
|
828
|
+
|
829
|
+
If you register a searchComponent to one of the standard names,
|
830
|
+
that will be used instead of the default.
|
831
|
+
|
832
|
+
To insert components before or after the 'standard' components, use:
|
833
|
+
|
834
|
+
<arr name="first-components">
|
835
|
+
<str>myFirstComponentName</str>
|
836
|
+
</arr>
|
837
|
+
|
838
|
+
<arr name="last-components">
|
839
|
+
<str>myLastComponentName</str>
|
840
|
+
</arr>
|
841
|
+
|
842
|
+
NOTE: The component registered with the name "debug" will
|
843
|
+
always be executed after the "last-components"
|
844
|
+
|
845
|
+
-->
|
846
|
+
|
847
|
+
<!-- Spell Check
|
848
|
+
|
849
|
+
The spell check component can return a list of alternative spelling
|
850
|
+
suggestions.
|
851
|
+
|
852
|
+
http://wiki.apache.org/solr/SpellCheckComponent
|
853
|
+
-->
|
854
|
+
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
|
855
|
+
|
856
|
+
<str name="queryAnalyzerFieldType">text_general</str>
|
857
|
+
|
858
|
+
<!-- Multiple "Spell Checkers" can be declared and used by this
|
859
|
+
component
|
860
|
+
-->
|
861
|
+
|
862
|
+
<!-- a spellchecker built from a field of the main index -->
|
863
|
+
<lst name="spellchecker">
|
864
|
+
<str name="name">default</str>
|
865
|
+
<str name="field">_text_</str>
|
866
|
+
<str name="classname">solr.DirectSolrSpellChecker</str>
|
867
|
+
<!-- the spellcheck distance measure used, the default is the internal levenshtein -->
|
868
|
+
<str name="distanceMeasure">internal</str>
|
869
|
+
<!-- minimum accuracy needed to be considered a valid spellcheck suggestion -->
|
870
|
+
<float name="accuracy">0.5</float>
|
871
|
+
<!-- the maximum #edits we consider when enumerating terms: can be 1 or 2 -->
|
872
|
+
<int name="maxEdits">2</int>
|
873
|
+
<!-- the minimum shared prefix when enumerating terms -->
|
874
|
+
<int name="minPrefix">1</int>
|
875
|
+
<!-- maximum number of inspections per result. -->
|
876
|
+
<int name="maxInspections">5</int>
|
877
|
+
<!-- minimum length of a query term to be considered for correction -->
|
878
|
+
<int name="minQueryLength">4</int>
|
879
|
+
<!-- maximum threshold of documents a query term can appear to be considered for correction -->
|
880
|
+
<float name="maxQueryFrequency">0.01</float>
|
881
|
+
<!-- uncomment this to require suggestions to occur in 1% of the documents
|
882
|
+
<float name="thresholdTokenFrequency">.01</float>
|
883
|
+
-->
|
884
|
+
</lst>
|
885
|
+
|
886
|
+
<!-- a spellchecker that can break or combine words. See "/spell" handler below for usage -->
|
887
|
+
<!--
|
888
|
+
<lst name="spellchecker">
|
889
|
+
<str name="name">wordbreak</str>
|
890
|
+
<str name="classname">solr.WordBreakSolrSpellChecker</str>
|
891
|
+
<str name="field">name</str>
|
892
|
+
<str name="combineWords">true</str>
|
893
|
+
<str name="breakWords">true</str>
|
894
|
+
<int name="maxChanges">10</int>
|
895
|
+
</lst>
|
896
|
+
-->
|
897
|
+
</searchComponent>
|
898
|
+
|
899
|
+
<!-- A request handler for demonstrating the spellcheck component.
|
900
|
+
|
901
|
+
NOTE: This is purely as an example. The whole purpose of the
|
902
|
+
SpellCheckComponent is to hook it into the request handler that
|
903
|
+
handles your normal user queries so that a separate request is
|
904
|
+
not needed to get suggestions.
|
905
|
+
|
906
|
+
IN OTHER WORDS, THERE IS REALLY GOOD CHANCE THE SETUP BELOW IS
|
907
|
+
NOT WHAT YOU WANT FOR YOUR PRODUCTION SYSTEM!
|
908
|
+
|
909
|
+
See http://wiki.apache.org/solr/SpellCheckComponent for details
|
910
|
+
on the request parameters.
|
911
|
+
-->
|
912
|
+
<requestHandler name="/spell" class="solr.SearchHandler" startup="lazy">
|
913
|
+
<lst name="defaults">
|
914
|
+
<!-- Solr will use suggestions from both the 'default' spellchecker
|
915
|
+
and from the 'wordbreak' spellchecker and combine them.
|
916
|
+
collations (re-written queries) can include a combination of
|
917
|
+
corrections from both spellcheckers -->
|
918
|
+
<str name="spellcheck.dictionary">default</str>
|
919
|
+
<str name="spellcheck">on</str>
|
920
|
+
<str name="spellcheck.extendedResults">true</str>
|
921
|
+
<str name="spellcheck.count">10</str>
|
922
|
+
<str name="spellcheck.alternativeTermCount">5</str>
|
923
|
+
<str name="spellcheck.maxResultsForSuggest">5</str>
|
924
|
+
<str name="spellcheck.collate">true</str>
|
925
|
+
<str name="spellcheck.collateExtendedResults">true</str>
|
926
|
+
<str name="spellcheck.maxCollationTries">10</str>
|
927
|
+
<str name="spellcheck.maxCollations">5</str>
|
928
|
+
</lst>
|
929
|
+
<arr name="last-components">
|
930
|
+
<str>spellcheck</str>
|
931
|
+
</arr>
|
932
|
+
</requestHandler>
|
933
|
+
|
934
|
+
<!-- Term Vector Component
|
935
|
+
|
936
|
+
http://wiki.apache.org/solr/TermVectorComponent
|
937
|
+
-->
|
938
|
+
<searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
|
939
|
+
|
940
|
+
<!-- A request handler for demonstrating the term vector component
|
941
|
+
|
942
|
+
This is purely as an example.
|
943
|
+
|
944
|
+
In reality you will likely want to add the component to your
|
945
|
+
already specified request handlers.
|
946
|
+
-->
|
947
|
+
<requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
|
948
|
+
<lst name="defaults">
|
949
|
+
<bool name="tv">true</bool>
|
950
|
+
</lst>
|
951
|
+
<arr name="last-components">
|
952
|
+
<str>tvComponent</str>
|
953
|
+
</arr>
|
954
|
+
</requestHandler>
|
955
|
+
|
956
|
+
<!-- Clustering Component. (Omitted here. See the default Solr example for a typical configuration.) -->
|
957
|
+
|
958
|
+
<!-- Terms Component
|
959
|
+
|
960
|
+
http://wiki.apache.org/solr/TermsComponent
|
961
|
+
|
962
|
+
A component to return terms and document frequency of those
|
963
|
+
terms
|
964
|
+
-->
|
965
|
+
<searchComponent name="terms" class="solr.TermsComponent"/>
|
966
|
+
|
967
|
+
<!-- A request handler for demonstrating the terms component -->
|
968
|
+
<requestHandler name="/terms" class="solr.SearchHandler" startup="lazy">
|
969
|
+
<lst name="defaults">
|
970
|
+
<bool name="terms">true</bool>
|
971
|
+
<bool name="distrib">false</bool>
|
972
|
+
</lst>
|
973
|
+
<arr name="components">
|
974
|
+
<str>terms</str>
|
975
|
+
</arr>
|
976
|
+
</requestHandler>
|
977
|
+
|
978
|
+
|
979
|
+
<!-- Query Elevation Component
|
980
|
+
|
981
|
+
http://wiki.apache.org/solr/QueryElevationComponent
|
982
|
+
|
983
|
+
a search component that enables you to configure the top
|
984
|
+
results for a given query regardless of the normal lucene
|
985
|
+
scoring.
|
986
|
+
-->
|
987
|
+
<searchComponent name="elevator" class="solr.QueryElevationComponent" >
|
988
|
+
<!-- pick a fieldType to analyze queries -->
|
989
|
+
<str name="queryFieldType">string</str>
|
990
|
+
</searchComponent>
|
991
|
+
|
992
|
+
<!-- A request handler for demonstrating the elevator component -->
|
993
|
+
<requestHandler name="/elevate" class="solr.SearchHandler" startup="lazy">
|
994
|
+
<lst name="defaults">
|
995
|
+
<str name="echoParams">explicit</str>
|
996
|
+
</lst>
|
997
|
+
<arr name="last-components">
|
998
|
+
<str>elevator</str>
|
999
|
+
</arr>
|
1000
|
+
</requestHandler>
|
1001
|
+
|
1002
|
+
<!-- Highlighting Component
|
1003
|
+
|
1004
|
+
http://wiki.apache.org/solr/HighlightingParameters
|
1005
|
+
-->
|
1006
|
+
<searchComponent class="solr.HighlightComponent" name="highlight">
|
1007
|
+
<highlighting>
|
1008
|
+
<!-- Configure the standard fragmenter -->
|
1009
|
+
<!-- This could most likely be commented out in the "default" case -->
|
1010
|
+
<fragmenter name="gap"
|
1011
|
+
default="true"
|
1012
|
+
class="solr.highlight.GapFragmenter">
|
1013
|
+
<lst name="defaults">
|
1014
|
+
<int name="hl.fragsize">100</int>
|
1015
|
+
</lst>
|
1016
|
+
</fragmenter>
|
1017
|
+
|
1018
|
+
<!-- A regular-expression-based fragmenter
|
1019
|
+
(for sentence extraction)
|
1020
|
+
-->
|
1021
|
+
<fragmenter name="regex"
|
1022
|
+
class="solr.highlight.RegexFragmenter">
|
1023
|
+
<lst name="defaults">
|
1024
|
+
<!-- slightly smaller fragsizes work better because of slop -->
|
1025
|
+
<int name="hl.fragsize">70</int>
|
1026
|
+
<!-- allow 50% slop on fragment sizes -->
|
1027
|
+
<float name="hl.regex.slop">0.5</float>
|
1028
|
+
<!-- a basic sentence pattern -->
|
1029
|
+
<str name="hl.regex.pattern">[-\w ,/\n\"']{20,200}</str>
|
1030
|
+
</lst>
|
1031
|
+
</fragmenter>
|
1032
|
+
|
1033
|
+
<!-- Configure the standard formatter -->
|
1034
|
+
<formatter name="html"
|
1035
|
+
default="true"
|
1036
|
+
class="solr.highlight.HtmlFormatter">
|
1037
|
+
<lst name="defaults">
|
1038
|
+
<str name="hl.simple.pre"><![CDATA[<em>]]></str>
|
1039
|
+
<str name="hl.simple.post"><![CDATA[</em>]]></str>
|
1040
|
+
</lst>
|
1041
|
+
</formatter>
|
1042
|
+
|
1043
|
+
<!-- Configure the standard encoder -->
|
1044
|
+
<encoder name="html"
|
1045
|
+
class="solr.highlight.HtmlEncoder" />
|
1046
|
+
|
1047
|
+
<!-- Configure the standard fragListBuilder -->
|
1048
|
+
<fragListBuilder name="simple"
|
1049
|
+
class="solr.highlight.SimpleFragListBuilder"/>
|
1050
|
+
|
1051
|
+
<!-- Configure the single fragListBuilder -->
|
1052
|
+
<fragListBuilder name="single"
|
1053
|
+
class="solr.highlight.SingleFragListBuilder"/>
|
1054
|
+
|
1055
|
+
<!-- Configure the weighted fragListBuilder -->
|
1056
|
+
<fragListBuilder name="weighted"
|
1057
|
+
default="true"
|
1058
|
+
class="solr.highlight.WeightedFragListBuilder"/>
|
1059
|
+
|
1060
|
+
<!-- default tag FragmentsBuilder -->
|
1061
|
+
<fragmentsBuilder name="default"
|
1062
|
+
default="true"
|
1063
|
+
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
1064
|
+
<!--
|
1065
|
+
<lst name="defaults">
|
1066
|
+
<str name="hl.multiValuedSeparatorChar">/</str>
|
1067
|
+
</lst>
|
1068
|
+
-->
|
1069
|
+
</fragmentsBuilder>
|
1070
|
+
|
1071
|
+
<!-- multi-colored tag FragmentsBuilder -->
|
1072
|
+
<fragmentsBuilder name="colored"
|
1073
|
+
class="solr.highlight.ScoreOrderFragmentsBuilder">
|
1074
|
+
<lst name="defaults">
|
1075
|
+
<str name="hl.tag.pre"><![CDATA[
|
1076
|
+
<b style="background:yellow">,<b style="background:lawgreen">,
|
1077
|
+
<b style="background:aquamarine">,<b style="background:magenta">,
|
1078
|
+
<b style="background:palegreen">,<b style="background:coral">,
|
1079
|
+
<b style="background:wheat">,<b style="background:khaki">,
|
1080
|
+
<b style="background:lime">,<b style="background:deepskyblue">]]></str>
|
1081
|
+
<str name="hl.tag.post"><![CDATA[</b>]]></str>
|
1082
|
+
</lst>
|
1083
|
+
</fragmentsBuilder>
|
1084
|
+
|
1085
|
+
<boundaryScanner name="default"
|
1086
|
+
default="true"
|
1087
|
+
class="solr.highlight.SimpleBoundaryScanner">
|
1088
|
+
<lst name="defaults">
|
1089
|
+
<str name="hl.bs.maxScan">10</str>
|
1090
|
+
<str name="hl.bs.chars">.,!? 	 </str>
|
1091
|
+
</lst>
|
1092
|
+
</boundaryScanner>
|
1093
|
+
|
1094
|
+
<boundaryScanner name="breakIterator"
|
1095
|
+
class="solr.highlight.BreakIteratorBoundaryScanner">
|
1096
|
+
<lst name="defaults">
|
1097
|
+
<!-- type should be one of CHARACTER, WORD(default), LINE and SENTENCE -->
|
1098
|
+
<str name="hl.bs.type">WORD</str>
|
1099
|
+
<!-- language and country are used when constructing Locale object. -->
|
1100
|
+
<!-- And the Locale object will be used when getting instance of BreakIterator -->
|
1101
|
+
<str name="hl.bs.language">en</str>
|
1102
|
+
<str name="hl.bs.country">US</str>
|
1103
|
+
</lst>
|
1104
|
+
</boundaryScanner>
|
1105
|
+
</highlighting>
|
1106
|
+
</searchComponent>
|
1107
|
+
|
1108
|
+
<!-- Update Processors
|
1109
|
+
|
1110
|
+
Chains of Update Processor Factories for dealing with Update
|
1111
|
+
Requests can be declared, and then used by name in Update
|
1112
|
+
Request Processors
|
1113
|
+
|
1114
|
+
http://wiki.apache.org/solr/UpdateRequestProcessor
|
1115
|
+
|
1116
|
+
-->
|
1117
|
+
|
1118
|
+
<!-- Add unknown fields to the schema
|
1119
|
+
|
1120
|
+
Field type guessing update processors that will
|
1121
|
+
attempt to parse string-typed field values as Booleans, Longs,
|
1122
|
+
Doubles, or Dates, and then add schema fields with the guessed
|
1123
|
+
field types. Text content will be indexed as "text_general" as
|
1124
|
+
well as a copy to a plain string version in *_str.
|
1125
|
+
|
1126
|
+
These require that the schema is both managed and mutable, by
|
1127
|
+
declaring schemaFactory as ManagedIndexSchemaFactory, with
|
1128
|
+
mutable specified as true.
|
1129
|
+
|
1130
|
+
See http://wiki.apache.org/solr/GuessingFieldTypes
|
1131
|
+
-->
|
1132
|
+
<updateProcessor class="solr.UUIDUpdateProcessorFactory" name="uuid"/>
|
1133
|
+
<updateProcessor class="solr.RemoveBlankFieldUpdateProcessorFactory" name="remove-blank"/>
|
1134
|
+
<updateProcessor class="solr.FieldNameMutatingUpdateProcessorFactory" name="field-name-mutating">
|
1135
|
+
<str name="pattern">[^\w-\.]</str>
|
1136
|
+
<str name="replacement">_</str>
|
1137
|
+
</updateProcessor>
|
1138
|
+
<updateProcessor class="solr.ParseBooleanFieldUpdateProcessorFactory" name="parse-boolean"/>
|
1139
|
+
<updateProcessor class="solr.ParseLongFieldUpdateProcessorFactory" name="parse-long"/>
|
1140
|
+
<updateProcessor class="solr.ParseDoubleFieldUpdateProcessorFactory" name="parse-double"/>
|
1141
|
+
<updateProcessor class="solr.ParseDateFieldUpdateProcessorFactory" name="parse-date">
|
1142
|
+
<arr name="format">
|
1143
|
+
<str>yyyy-MM-dd['T'[HH:mm[:ss[.SSS]][z</str>
|
1144
|
+
<str>yyyy-MM-dd['T'[HH:mm[:ss[,SSS]][z</str>
|
1145
|
+
<str>yyyy-MM-dd HH:mm[:ss[.SSS]][z</str>
|
1146
|
+
<str>yyyy-MM-dd HH:mm[:ss[,SSS]][z</str>
|
1147
|
+
<str>[EEE, ]dd MMM yyyy HH:mm[:ss] z</str>
|
1148
|
+
<str>EEEE, dd-MMM-yy HH:mm:ss z</str>
|
1149
|
+
<str>EEE MMM ppd HH:mm:ss [z ]yyyy</str>
|
1150
|
+
</arr>
|
1151
|
+
</updateProcessor>
|
1152
|
+
<updateProcessor class="solr.AddSchemaFieldsUpdateProcessorFactory" name="add-schema-fields">
|
1153
|
+
<lst name="typeMapping">
|
1154
|
+
<str name="valueClass">java.lang.String</str>
|
1155
|
+
<str name="fieldType">text_general</str>
|
1156
|
+
<lst name="copyField">
|
1157
|
+
<str name="dest">*_str</str>
|
1158
|
+
<int name="maxChars">256</int>
|
1159
|
+
</lst>
|
1160
|
+
<!-- Use as default mapping instead of defaultFieldType -->
|
1161
|
+
<bool name="default">true</bool>
|
1162
|
+
</lst>
|
1163
|
+
<lst name="typeMapping">
|
1164
|
+
<str name="valueClass">java.lang.Boolean</str>
|
1165
|
+
<str name="fieldType">booleans</str>
|
1166
|
+
</lst>
|
1167
|
+
<lst name="typeMapping">
|
1168
|
+
<str name="valueClass">java.util.Date</str>
|
1169
|
+
<str name="fieldType">pdates</str>
|
1170
|
+
</lst>
|
1171
|
+
<lst name="typeMapping">
|
1172
|
+
<str name="valueClass">java.lang.Long</str>
|
1173
|
+
<str name="valueClass">java.lang.Integer</str>
|
1174
|
+
<str name="fieldType">plongs</str>
|
1175
|
+
</lst>
|
1176
|
+
<lst name="typeMapping">
|
1177
|
+
<str name="valueClass">java.lang.Number</str>
|
1178
|
+
<str name="fieldType">pdoubles</str>
|
1179
|
+
</lst>
|
1180
|
+
</updateProcessor>
|
1181
|
+
|
1182
|
+
<!-- The update.autoCreateFields property can be turned to false to disable schemaless mode -->
|
1183
|
+
<updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="${update.autoCreateFields:true}"
|
1184
|
+
processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">
|
1185
|
+
<processor class="solr.LogUpdateProcessorFactory"/>
|
1186
|
+
<processor class="solr.DistributedUpdateProcessorFactory"/>
|
1187
|
+
<processor class="solr.RunUpdateProcessorFactory"/>
|
1188
|
+
</updateRequestProcessorChain>
|
1189
|
+
|
1190
|
+
<!-- Deduplication
|
1191
|
+
|
1192
|
+
An example dedup update processor that creates the "id" field
|
1193
|
+
on the fly based on the hash code of some other fields. This
|
1194
|
+
example has overwriteDupes set to false since we are using the
|
1195
|
+
id field as the signatureField and Solr will maintain
|
1196
|
+
uniqueness based on that anyway.
|
1197
|
+
|
1198
|
+
-->
|
1199
|
+
<!--
|
1200
|
+
<updateRequestProcessorChain name="dedupe">
|
1201
|
+
<processor class="solr.processor.SignatureUpdateProcessorFactory">
|
1202
|
+
<bool name="enabled">true</bool>
|
1203
|
+
<str name="signatureField">id</str>
|
1204
|
+
<bool name="overwriteDupes">false</bool>
|
1205
|
+
<str name="fields">name,features,cat</str>
|
1206
|
+
<str name="signatureClass">solr.processor.Lookup3Signature</str>
|
1207
|
+
</processor>
|
1208
|
+
<processor class="solr.LogUpdateProcessorFactory" />
|
1209
|
+
<processor class="solr.RunUpdateProcessorFactory" />
|
1210
|
+
</updateRequestProcessorChain>
|
1211
|
+
-->
|
1212
|
+
|
1213
|
+
<!-- Language identification
|
1214
|
+
|
1215
|
+
This example update chain identifies the language of the incoming
|
1216
|
+
documents using the langid contrib. The detected language is
|
1217
|
+
written to field language_s. No field name mapping is done.
|
1218
|
+
The fields used for detection are text, title, subject and description,
|
1219
|
+
making this example suitable for detecting languages form full-text
|
1220
|
+
rich documents injected via ExtractingRequestHandler.
|
1221
|
+
See more about langId at http://wiki.apache.org/solr/LanguageDetection
|
1222
|
+
-->
|
1223
|
+
<!--
|
1224
|
+
<updateRequestProcessorChain name="langid">
|
1225
|
+
<processor class="org.apache.solr.update.processor.TikaLanguageIdentifierUpdateProcessorFactory">
|
1226
|
+
<str name="langid.fl">text,title,subject,description</str>
|
1227
|
+
<str name="langid.langField">language_s</str>
|
1228
|
+
<str name="langid.fallback">en</str>
|
1229
|
+
</processor>
|
1230
|
+
<processor class="solr.LogUpdateProcessorFactory" />
|
1231
|
+
<processor class="solr.RunUpdateProcessorFactory" />
|
1232
|
+
</updateRequestProcessorChain>
|
1233
|
+
-->
|
1234
|
+
|
1235
|
+
<!-- Script update processor
|
1236
|
+
|
1237
|
+
This example hooks in an update processor implemented using JavaScript.
|
1238
|
+
|
1239
|
+
See more about the script update processor at http://wiki.apache.org/solr/ScriptUpdateProcessor
|
1240
|
+
-->
|
1241
|
+
<!--
|
1242
|
+
<updateRequestProcessorChain name="script">
|
1243
|
+
<processor class="solr.StatelessScriptUpdateProcessorFactory">
|
1244
|
+
<str name="script">update-script.js</str>
|
1245
|
+
<lst name="params">
|
1246
|
+
<str name="config_param">example config parameter</str>
|
1247
|
+
</lst>
|
1248
|
+
</processor>
|
1249
|
+
<processor class="solr.RunUpdateProcessorFactory" />
|
1250
|
+
</updateRequestProcessorChain>
|
1251
|
+
-->
|
1252
|
+
|
1253
|
+
<!-- Response Writers
|
1254
|
+
|
1255
|
+
http://wiki.apache.org/solr/QueryResponseWriter
|
1256
|
+
|
1257
|
+
Request responses will be written using the writer specified by
|
1258
|
+
the 'wt' request parameter matching the name of a registered
|
1259
|
+
writer.
|
1260
|
+
|
1261
|
+
The "default" writer is the default and will be used if 'wt' is
|
1262
|
+
not specified in the request.
|
1263
|
+
-->
|
1264
|
+
<!-- The following response writers are implicitly configured unless
|
1265
|
+
overridden...
|
1266
|
+
-->
|
1267
|
+
<!--
|
1268
|
+
<queryResponseWriter name="xml"
|
1269
|
+
default="true"
|
1270
|
+
class="solr.XMLResponseWriter" />
|
1271
|
+
<queryResponseWriter name="json" class="solr.JSONResponseWriter"/>
|
1272
|
+
<queryResponseWriter name="python" class="solr.PythonResponseWriter"/>
|
1273
|
+
<queryResponseWriter name="ruby" class="solr.RubyResponseWriter"/>
|
1274
|
+
<queryResponseWriter name="php" class="solr.PHPResponseWriter"/>
|
1275
|
+
<queryResponseWriter name="phps" class="solr.PHPSerializedResponseWriter"/>
|
1276
|
+
<queryResponseWriter name="csv" class="solr.CSVResponseWriter"/>
|
1277
|
+
<queryResponseWriter name="schema.xml" class="solr.SchemaXmlResponseWriter"/>
|
1278
|
+
-->
|
1279
|
+
|
1280
|
+
<queryResponseWriter name="json" class="solr.JSONResponseWriter">
|
1281
|
+
<!-- For the purposes of the tutorial, JSON responses are written as
|
1282
|
+
plain text so that they are easy to read in *any* browser.
|
1283
|
+
If you expect a MIME type of "application/json" just remove this override.
|
1284
|
+
-->
|
1285
|
+
<str name="content-type">text/plain; charset=UTF-8</str>
|
1286
|
+
</queryResponseWriter>
|
1287
|
+
|
1288
|
+
<!--
|
1289
|
+
Custom response writers can be declared as needed...
|
1290
|
+
-->
|
1291
|
+
<queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" startup="lazy">
|
1292
|
+
<str name="template.base.dir">${velocity.template.base.dir:}</str>
|
1293
|
+
<str name="solr.resource.loader.enabled">${velocity.solr.resource.loader.enabled:true}</str>
|
1294
|
+
<str name="params.resource.loader.enabled">${velocity.params.resource.loader.enabled:false}</str>
|
1295
|
+
</queryResponseWriter>
|
1296
|
+
|
1297
|
+
<!-- XSLT response writer transforms the XML output by any xslt file found
|
1298
|
+
in Solr's conf/xslt directory. Changes to xslt files are checked for
|
1299
|
+
every xsltCacheLifetimeSeconds.
|
1300
|
+
-->
|
1301
|
+
<queryResponseWriter name="xslt" class="solr.XSLTResponseWriter">
|
1302
|
+
<int name="xsltCacheLifetimeSeconds">5</int>
|
1303
|
+
</queryResponseWriter>
|
1304
|
+
|
1305
|
+
<!-- Query Parsers
|
1306
|
+
|
1307
|
+
https://lucene.apache.org/solr/guide/query-syntax-and-parsing.html
|
1308
|
+
|
1309
|
+
Multiple QParserPlugins can be registered by name, and then
|
1310
|
+
used in either the "defType" param for the QueryComponent (used
|
1311
|
+
by SearchHandler) or in LocalParams
|
1312
|
+
-->
|
1313
|
+
<!-- example of registering a query parser -->
|
1314
|
+
<!--
|
1315
|
+
<queryParser name="myparser" class="com.mycompany.MyQParserPlugin"/>
|
1316
|
+
-->
|
1317
|
+
|
1318
|
+
<!-- Function Parsers
|
1319
|
+
|
1320
|
+
http://wiki.apache.org/solr/FunctionQuery
|
1321
|
+
|
1322
|
+
Multiple ValueSourceParsers can be registered by name, and then
|
1323
|
+
used as function names when using the "func" QParser.
|
1324
|
+
-->
|
1325
|
+
<!-- example of registering a custom function parser -->
|
1326
|
+
<!--
|
1327
|
+
<valueSourceParser name="myfunc"
|
1328
|
+
class="com.mycompany.MyValueSourceParser" />
|
1329
|
+
-->
|
1330
|
+
|
1331
|
+
|
1332
|
+
<!-- Document Transformers
|
1333
|
+
http://wiki.apache.org/solr/DocTransformers
|
1334
|
+
-->
|
1335
|
+
<!--
|
1336
|
+
Could be something like:
|
1337
|
+
<transformer name="db" class="com.mycompany.LoadFromDatabaseTransformer" >
|
1338
|
+
<int name="connection">jdbc://....</int>
|
1339
|
+
</transformer>
|
1340
|
+
|
1341
|
+
To add a constant value to all docs, use:
|
1342
|
+
<transformer name="mytrans2" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
|
1343
|
+
<int name="value">5</int>
|
1344
|
+
</transformer>
|
1345
|
+
|
1346
|
+
If you want the user to still be able to change it with _value:something_ use this:
|
1347
|
+
<transformer name="mytrans3" class="org.apache.solr.response.transform.ValueAugmenterFactory" >
|
1348
|
+
<double name="defaultValue">5</double>
|
1349
|
+
</transformer>
|
1350
|
+
|
1351
|
+
If you are using the QueryElevationComponent, you may wish to mark documents that get boosted. The
|
1352
|
+
EditorialMarkerFactory will do exactly that:
|
1353
|
+
<transformer name="qecBooster" class="org.apache.solr.response.transform.EditorialMarkerFactory" />
|
1354
|
+
-->
|
1355
|
+
</config>
|