Showing
2 changed files
with
6 additions
and
7 deletions
1 | -<schema name="account" version="1.5"><!-- Confirmer choix version--> | 1 | +<schema name="account" version="1.6"><!-- Version 1.6 depuis Solr 5.5, encore valide en 6.6.0 --> |
2 | <fieldType name="int" class="solr.TrieIntField"/> | 2 | <fieldType name="int" class="solr.TrieIntField"/> |
3 | <fieldType name="long" class="solr.TrieLongField"/> | 3 | <fieldType name="long" class="solr.TrieLongField"/> |
4 | <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" /> | 4 | <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" /> |
... | @@ -17,7 +17,6 @@ | ... | @@ -17,7 +17,6 @@ |
17 | <filter class="solr.ICUFoldingFilterFactory"/> | 17 | <filter class="solr.ICUFoldingFilterFactory"/> |
18 | </analyzer> | 18 | </analyzer> |
19 | </fieldType> | 19 | </fieldType> |
20 | - <fieldType name="namestr" class="solr.StrField"/> | ||
21 | 20 | ||
22 | <field name="presentation" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/> | 21 | <field name="presentation" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/> |
23 | <field name="userId" type="int" indexed="true" multiValued="false" required="true"/> | 22 | <field name="userId" type="int" indexed="true" multiValued="false" required="true"/> | ... | ... |
1 | -<schema name="publisher" version="1.5"><!-- Confirmer choix version--> | 1 | +<schema name="publisher" version="1.6"><!-- Version 1.6 depuis Solr 5.5, encore valide en 6.6.0 --> |
2 | <fieldType name="int" class="solr.TrieIntField"/> | 2 | <fieldType name="int" class="solr.TrieIntField"/> |
3 | <fieldType name="long" class="solr.TrieLongField"/> | 3 | <fieldType name="long" class="solr.TrieLongField"/> |
4 | <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" /> | 4 | <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" /> |
5 | +<!-- TEST | ||
5 | <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"/> | 6 | <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"/> |
6 | <fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/> | 7 | <fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/> |
7 | <fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/> | 8 | <fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/> |
8 | <fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/> | 9 | <fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/> |
10 | + --> | ||
9 | <fieldType name="ICUtext" class="solr.TextField"> | 11 | <fieldType name="ICUtext" class="solr.TextField"> |
10 | <analyzer type="index"> | 12 | <analyzer type="index"> |
11 | <charFilter class="solr.HTMLStripCharFilterFactory"/> | 13 | <charFilter class="solr.HTMLStripCharFilterFactory"/> |
... | @@ -17,18 +19,16 @@ | ... | @@ -17,18 +19,16 @@ |
17 | <filter class="solr.ICUFoldingFilterFactory"/> | 19 | <filter class="solr.ICUFoldingFilterFactory"/> |
18 | </analyzer> | 20 | </analyzer> |
19 | </fieldType> | 21 | </fieldType> |
20 | - <fieldType name="namestr" class="solr.StrField"/> | 22 | + <!-- En fait, la collation ne sert que pour des tris sur les requêtes avancées. On peut créer des champs spécifiques |
23 | + pour le tri. Je pense que ceci sort du cadre à cette étape du projet. --> | ||
21 | <!-- Collation Unicode difficile à faire fonctionner | 24 | <!-- Collation Unicode difficile à faire fonctionner |
22 | <fieldType name="textICUC" class="solr.ICUCollationField" locale="fr"/> | 25 | <fieldType name="textICUC" class="solr.ICUCollationField" locale="fr"/> |
23 | --> | 26 | --> |
24 | <!-- CollationField ne supporte pas un analyzer | 27 | <!-- CollationField ne supporte pas un analyzer |
25 | ---> | ||
26 | <fieldType name="textColl" class="solr.CollationField" language="fr"/> | 28 | <fieldType name="textColl" class="solr.CollationField" language="fr"/> |
27 | -<!-- | ||
28 | --> | 29 | --> |
29 | 30 | ||
30 | <field name="publisherName" type="ICUtext" indexed="true" stored="true" multiValued="false" required="true"/> | 31 | <field name="publisherName" type="ICUtext" indexed="true" stored="true" multiValued="false" required="true"/> |
31 | - <field name="publisherCountry" type="namestr" indexed="true" stored="true" multiValued="false" required="false"/> | ||
32 | <field name="publisherHistory" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/> | 32 | <field name="publisherHistory" type="ICUtext" indexed="true" stored="true" multiValued="false" required="false"/> |
33 | <field name="publisherId" type="int" indexed="true" multiValued="false" required="true"/> | 33 | <field name="publisherId" type="int" indexed="true" multiValued="false" required="true"/> |
34 | <field name="_version_" type="long" indexed="true" multiValued="false" required="true"/> | 34 | <field name="_version_" type="long" indexed="true" multiValued="false" required="true"/> | ... | ... |
-
Please register or login to post a comment