[MGNLEESOLR-84] Create new example solrconfig and managed-schema files Created: 05/Oct/15  Updated: 15/Apr/16  Resolved: 13/Oct/15

Status: Closed
Project: Solr Search Provider
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0

Type: Improvement Priority: Neutral
Reporter: Evzen Fochr Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 3h 20m
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLEESOLR-67 Support Solr 5 Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Sprint: Kromeriz 14
Story Points: 2

 Comments   
Comment by Evzen Fochr [ 05/Oct/15 ]

SuggestComponent and SpellCheckComponent added to default schemaless solrconfig file called with SearchHandler named as "/suggest". Results from SuggestComponent returned first.

Comment by Evzen Fochr [ 05/Oct/15 ]

Changes needed in managed-schema against default.

  • change text field to
    <field name="text" type="text_general" multiValued="true" sortMissingLast="true" indexed="true" stored="true"/>
    
  • dynamicField with type text_language - change name to text_language or *_language
  • add
<!-- For keywords and categories -->
  <dynamicField name="*_comma_split" type="category" indexed="true" stored="true"/>
  <fieldType name="category" class="solr.TextField" positionIncrementGap="100">
    <analyzer type="index">
      <tokenizer class="solr.PatternTokenizerFactory" pattern=",\s*"/>
      <filter class="solr.LowerCaseFilterFactory"/>
      <filter class="solr.StandardFilterFactory"/>
    </analyzer>
    <analyzer type="query">
      <tokenizer class="solr.PatternTokenizerFactory" pattern=",\s*"/>
      <filter class="solr.LowerCaseFilterFactory"/>
       <filter class="solr.StandardFilterFactory"/>
    </analyzer>
  </fieldType>
  <!-- For keywords and categories -->
Comment by Evzen Fochr [ 06/Oct/15 ]

do not delete example schema, just make it compatible with solr5

Comment by Evzen Fochr [ 06/Oct/15 ]

How to change Solr managed schema to classic schema

Stop Solr: $ bin/solr stop

Go to server/solr/mycore/conf, where "mycore" is the name of your core/collection.

Edit solrconfig.xml:

search for <schemaFactory class="ManagedIndexSchemaFactory"> and comment the whole element
search for <schemaFactory class="ClassicIndexSchemaFactory"/> and uncomment it
search for the <initParams> element that refers to add-unknown-fields-to-the-schema and comment out the whole <initParams>...</initParams>
Rename managed-schema to schema.xml and you are done.

Comment by Milan Divilek [ 13/Oct/15 ]

Reopen: info.magnolia.search.solrsearchprovider.logic.providers.ServletSolrSearchProvider doesn't resolve suggestions from org.apache.solr.client.solrj.response.SuggesterResponse

Generated at Mon Feb 12 10:59:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.