Skip to content

Commit

Permalink
[leisref] Adiciona campos de legislação no índice Solr
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Nov 10, 2016
1 parent f3d07da commit 131aef2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions solr/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="title" type="text" indexed="true" stored="true" termVectors="true"/>
<field name="link" type="string" indexed="false" stored="true" multiValued="true"/>
<field name="language" type="string" indexed="true" stored="true" multiValued="true"/>

<field name="thematic_area" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="thematic_area_display" type="string" indexed="true" stored="true" multiValued="true"/>
Expand Down Expand Up @@ -196,6 +197,10 @@
<field name="publication_language" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="publication_country" type="string" indexed="true" stored="true" multiValued="true"/>

<!-- legislation -->
<field name="scope_region" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="act_type" type="string" indexed="true" stored="true" multiValued="false"/>

<!-- Compatibility with portal-org indexes -->
<field name="ti" type="text" indexed="true" stored="false" multiValued="true" />
<field name="au" type="text" indexed="true" stored="false" multiValued="true"/>
Expand Down
3 changes: 3 additions & 0 deletions solr/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
<str name="facet.field">publication_year</str>
<str name="facet.field">journal</str>
<str name="facet.field">database</str>
<str name="facet.field">scope_region</str>
<str name="facet.field">act_type</str>
<str name="facet.field">language</str>
<str name="facet.limit">20</str>
<str name="facet.mincount">1</str>
</lst>
Expand Down

0 comments on commit 131aef2

Please sign in to comment.