Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.platform/services.yaml: Update generate-solr-config.sh path and Solr version #61

Closed
wants to merge 9 commits into from
6 changes: 3 additions & 3 deletions resources/platformsh/common/4.6/.platform/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ rediscache:

# If you wish to use solr, uncomment this service and the corresponding relationship in .platform.app.yaml.
# Also, you need to generate the config using:
# vendor/ezsystems/ezplatform-solr-search-engine/bin/generate-solr-config.sh
# vendor/ibexa/solr/bin/generate-solr-config.sh
# Multi core setup is currently not supported on Platform.sh. Sharding does not work as the cores are
# unable to reach each other
#solrsearch:
# type: solr:7.7
# type: solr:8.11
# disk: 512
# configuration:
# configsets:
# mainconfig: !archive "configsets/solr6"
# mainconfig: !archive "configsets/solr8"
# cores:
# collection1:
# core_properties: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@
<field name="custom_geolocation_field_0_coordinate" type="double" indexed="true" stored="false"/>
<field name="custom_geolocation_field_1_coordinate" type="double" indexed="true" stored="false"/>
<copyField source="testtype_maplocation_value_location_gl" dest="custom_geolocation_field" />

<!--
This generates a field for prefix queries, using edge n-grams.
-->
<field name="ext_prefix_ngram" type="text_edge_ngram" indexed="true" stored="false" required="false" multiValued="true" />
<copyField source="meta_content__text_t" dest="ext_prefix_ngram" />
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,3 @@
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>

<!-- This field can be used to query prefixes up to 15 characters.
Any term longer than that would be treated as a prefix with only
the 15 first characters for comparison -->
<fieldType name="text_edge_ngram" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="15" />
</analyzer>
</fieldType>
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,49 @@ should not remove or drastically change the existing definitions.
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>

<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100" multiValued="true" sortMissingLast="true">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>

<fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
<fieldType name="pdates" class="solr.DatePointField" docValues="true" multiValued="true"/>
<!--
Numeric field types that index values using KD-trees.
Point fields don't support FieldCache, so they must have docValues="true" if needed for sorting, faceting, functions, etc.
-->
<fieldType name="pint" class="solr.IntPointField" docValues="true"/>
<fieldType name="pfloat" class="solr.FloatPointField" docValues="true"/>
<fieldType name="plong" class="solr.LongPointField" docValues="true"/>
<fieldType name="pdouble" class="solr.DoublePointField" docValues="true"/>

<fieldType name="pints" class="solr.IntPointField" docValues="true" multiValued="true"/>
<fieldType name="pfloats" class="solr.FloatPointField" docValues="true" multiValued="true"/>
<fieldType name="plongs" class="solr.LongPointField" docValues="true" multiValued="true"/>
<fieldType name="pdoubles" class="solr.DoublePointField" docValues="true" multiValued="true"/>
<fieldType name="random" class="solr.RandomSortField" indexed="true"/>

<fieldType name="identifier" class="solr.StrField" sortMissingLast="true" />
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" multiValued="false"/>
<fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>
<fieldtype name="binary" class="solr.BinaryField"/>
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="int" class="solr.IntPointField" docValues="true"/>
<fieldType name="float" class="solr.FloatPointField" docValues="true"/>
<fieldType name="long" class="solr.LongPointField" docValues="true"/>
<fieldType name="double" class="solr.DoublePointField" docValues="true"/>
<fieldType name="date" class="solr.DatePointField" docValues="true"/>

<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>

<fieldType name="currency" class="solr.CurrencyField" precisionStep="8" defaultCurrency="USD" currencyConfig="currency.xml" />

<fieldType name="random" class="solr.RandomSortField" indexed="true"/>



<!--
Required ID field.
-->
Expand Down Expand Up @@ -102,11 +126,10 @@ should not remove or drastically change the existing definitions.
<dynamicField name="*_gl" type="location" indexed="true" stored="true"/>
<dynamicField name="*_gl_0_coordinate" type="double" indexed="true" stored="true"/>
<dynamicField name="*_gl_1_coordinate" type="double" indexed="true" stored="true"/>
<dynamicField name="*_c" type="currency" indexed="true" stored="true"/>

<!--
This field is required to allow random sorting
-->
<!--
This field is required to allow random sorting
-->
<dynamicField name="random*" type="random" indexed="true" stored="false"/>

<!--
Expand Down
Loading
Loading