Skip to content

Commit

Permalink
Add differentiae_database to solr indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiller committed Jan 25, 2024
1 parent f69c517 commit 2e088aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/public/cantusdata/models/chant.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def create_solr_record(self):
"position": self.lit_position,
"mode": self.mode,
"differentia": self.differentia,
"differentiae_database": self.differentiae_database,
"finalis": self.finalis,
"incipit": self.incipit,
"full_text": self.full_text,
Expand Down
4 changes: 4 additions & 0 deletions solr/solr/cantus_ultimus_1/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<field name="position" type="string" indexed="true" stored="true" multiValued="false" />
<field name="mode" type="string" indexed="true" stored="true" multiValued="false" />
<field name="differentia" type="string" indexed="true" stored="true" multiValued="false" />
<field name="differentiae_database" type="string" indexed="true" stored="true" multiValued="false" />
<field name="finalis" type="string" indexed="true" stored="true" multiValued="false" />
<field name="incipit" type="string" indexed="true" stored="true" multiValued="false" />
<field name="full_text" type="text_general" indexed="true" stored="true" multiValued="false" />
Expand Down Expand Up @@ -114,6 +115,8 @@
<copyField source="full_text_ms" dest="text" />
<copyField source="folio" dest="text" />
<copyField source="genre" dest="text" />
<copyField source="differentia" dest="text" />
<copyField source="differentiae_database" dest="text" />

<!-- Copy string fields we want to search by into dynamic text fields -->
<copyField source="feast" dest="feast_t_hidden" />
Expand All @@ -122,6 +125,7 @@
<copyField source="position" dest="position_t_hidden" />
<copyField source="mode" dest="mode_t_hidden" />
<copyField source="differentia" dest="differentia_t_hidden" />
<copyField source="differentiae_database" dest="differentiae_database_t_hidden" />
<copyField source="finalis" dest="finalis_t_hidden" />
<copyField source="folio" dest="folio_t_hidden" />
<copyField source="incipit" dest="incipit_t_hidden" />
Expand Down

0 comments on commit 2e088aa

Please sign in to comment.