Skip to content

Commit

Permalink
Merge pull request #197 from MuckRock/solr-page-spec
Browse files Browse the repository at this point in the history
Add page spec to solr
  • Loading branch information
eyeseast authored Mar 20, 2024
2 parents 7a7612f + 5c95d8d commit 590c9fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/solr/managed-schema
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<field name="updated_at" type="pdate" uninvertible="true" indexed="true" stored="true"/>
<field name="user" type="pint" uninvertible="true" indexed="true" stored="true"/>
<field name="noindex" type="boolean" uninvertible="true" indexed="true" stored="true"/>
<field name="page_spec" type="string" uninvertible="false" indexed="false" stored="true" />

<field name="title_sort" type="string" indexed="true" stored="false" uninvertible="false" docValues="true" />
<field name="source_sort" type="string" indexed="true" stored="false" uninvertible="false" docValues="true" />
Expand Down
1 change: 1 addition & 0 deletions config/solr/solrconfig.local.xml
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ this file, see http://wiki.apache.org/solr/SolrConfigXml.
organization
original_extension
page_count
page_spec
projects
publish_at
published_url
Expand Down
1 change: 1 addition & 0 deletions config/solr/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ this file, see http://wiki.apache.org/solr/SolrConfigXml.
organization
original_extension
page_count
page_spec
projects
publish_at
published_url
Expand Down
1 change: 1 addition & 0 deletions documentcloud/documents/models/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ def page_filter(text):
"created_at": format_date(self.created_at),
"updated_at": format_date(self.updated_at),
"page_count": self.page_count,
"page_spec": self.page_spec,
"projects": project_ids,
"projects_edit_access": project_edit_access_ids,
"original_extension": self.original_extension,
Expand Down

0 comments on commit 590c9fe

Please sign in to comment.