Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-07-17 10:13:47 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
52b30d98ac7a06e27352168b84c10843f8ce5409
52b30d98
1 parent
96b9f7d5
Simplification des schémas Solr
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
config/solr/accounts/schema.xml
config/solr/publishers/schema.xml
config/solr/accounts/schema.xml
View file @
52b30d9
<schema
name=
"account"
version=
"1.
5"
>
<!-- Confirmer choix version
-->
<schema
name=
"account"
version=
"1.
6"
>
<!-- Version 1.6 depuis Solr 5.5, encore valide en 6.6.0
-->
<fieldType
name=
"int"
class=
"solr.TrieIntField"
/>
<fieldType
name=
"long"
class=
"solr.TrieLongField"
/>
<fieldType
name=
"string"
class=
"solr.StrField"
sortMissingLast=
"true"
docValues=
"true"
/>
...
...
@@ -7,17 +7,16 @@
<fieldType
name=
"tlongs"
class=
"solr.TrieLongField"
docValues=
"true"
precisionStep=
"8"
positionIncrementGap=
"0"
/>
<fieldType
name=
"tdoubles"
class=
"solr.TrieDoubleField"
docValues=
"true"
precisionStep=
"8"
positionIncrementGap=
"0"
/>
<fieldType
name=
"ICUtext"
class=
"solr.TextField"
>
<analyzer
type=
"index"
>
<analyzer
type=
"index"
>
<charFilter
class=
"solr.HTMLStripCharFilterFactory"
/>
<tokenizer
class=
"solr.ICUTokenizerFactory"
/>
<filter
class=
"solr.ICUFoldingFilterFactory"
/>
</analyzer>
<analyzer
type=
"query"
>
</analyzer>
<analyzer
type=
"query"
>
<tokenizer
class=
"solr.ICUTokenizerFactory"
/>
<filter
class=
"solr.ICUFoldingFilterFactory"
/>
</analyzer>
</analyzer>
</fieldType>
<fieldType
name=
"namestr"
class=
"solr.StrField"
/>
<field
name=
"presentation"
type=
"ICUtext"
indexed=
"true"
stored=
"true"
multiValued=
"false"
required=
"false"
/>
<field
name=
"userId"
type=
"int"
indexed=
"true"
multiValued=
"false"
required=
"true"
/>
...
...
config/solr/publishers/schema.xml
View file @
52b30d9
<schema
name=
"publisher"
version=
"1.
5"
>
<!-- Confirmer choix version
-->
<schema
name=
"publisher"
version=
"1.
6"
>
<!-- Version 1.6 depuis Solr 5.5, encore valide en 6.6.0
-->
<fieldType
name=
"int"
class=
"solr.TrieIntField"
/>
<fieldType
name=
"long"
class=
"solr.TrieLongField"
/>
<fieldType
name=
"string"
class=
"solr.StrField"
sortMissingLast=
"true"
docValues=
"true"
/>
<!-- TEST
<fieldType name="booleans" class="solr.BoolField" sortMissingLast="true"/>
<fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/>
<fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
<fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
-->
<fieldType
name=
"ICUtext"
class=
"solr.TextField"
>
<analyzer
type=
"index"
>
<analyzer
type=
"index"
>
<charFilter
class=
"solr.HTMLStripCharFilterFactory"
/>
<tokenizer
class=
"solr.ICUTokenizerFactory"
/>
<filter
class=
"solr.ICUFoldingFilterFactory"
/>
</analyzer>
<analyzer
type=
"query"
>
</analyzer>
<analyzer
type=
"query"
>
<tokenizer
class=
"solr.ICUTokenizerFactory"
/>
<filter
class=
"solr.ICUFoldingFilterFactory"
/>
</analyzer>
</analyzer>
</fieldType>
<fieldType
name=
"namestr"
class=
"solr.StrField"
/>
<!-- En fait, la collation ne sert que pour des tris sur les requêtes avancées. On peut créer des champs spécifiques
pour le tri. Je pense que ceci sort du cadre à cette étape du projet. -->
<!-- Collation Unicode difficile à faire fonctionner
<fieldType name="textICUC" class="solr.ICUCollationField" locale="fr"/>
-->
<!-- CollationField ne supporte pas un analyzer
-->
<fieldType name="textColl" class="solr.CollationField" language="fr"/>
<!--
-->
<field
name=
"publisherName"
type=
"ICUtext"
indexed=
"true"
stored=
"true"
multiValued=
"false"
required=
"true"
/>
<field
name=
"publisherCountry"
type=
"namestr"
indexed=
"true"
stored=
"true"
multiValued=
"false"
required=
"false"
/>
<field
name=
"publisherHistory"
type=
"ICUtext"
indexed=
"true"
stored=
"true"
multiValued=
"false"
required=
"false"
/>
<field
name=
"publisherId"
type=
"int"
indexed=
"true"
multiValued=
"false"
required=
"true"
/>
<field
name=
"_version_"
type=
"long"
indexed=
"true"
multiValued=
"false"
required=
"true"
/>
...
...
Please
register
or
login
to post a comment