Skip to content

Commit

Permalink
Document new feature to force order of facets via a value in settings…
Browse files Browse the repository at this point in the history
….json
  • Loading branch information
hectorcorrea committed Oct 20, 2019
1 parent dda547d commit 4101bed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ repo is a good place to start.
"hl": "on"
},
"solrFacets": {
"subjects_str": "Subjects",
"publisher_str": "Publisher"
"subjects_str": "1|Subjects",
"publisher_str": "2|Publisher"
},
"searchFl": ["id", "title", "subjects", "author"],
"viewOneFl": ["id", "title", "authorsAll", "subjects"]
}
```

The format for `solrFacets` is `"field_name" : "display title"`, notice that you can force the order of the facets by prefixing the display value with a number (e.g. "1|Subjects").

* `serverAddress` is the address at which SolrDora will run on your local box. Do not prepend "http" to this setting.
* `solrCoreUrl` is the URL of the Solr core that you want to connect to.
* `solrOptions` is a set of options that will be passed to Solr on every request. In the previous example you can see how we set the default parser (defType) to "edismax" and defining the query field (qf) to use the author and title fields. Any valid Solr parameter can be configured here.
Expand Down
4 changes: 2 additions & 2 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"hl": "on"
},
"solrFacets": {
"subjects_ss": "3|Subject",
"subjects_ss": "1|Subject",
"publisher_s": "2|Publisher",
"title_s": "1|Title"
"title_s": "3|Title"
},
"searchFl": ["id", "title_txt_en", "subjects_txts_en", "authors_all_txts_en"],
"viewOneFl": ["id", "title_txt_en", "authors_all_txts_en", "subjects_txts_en", "publisher_txt_en"]
Expand Down

0 comments on commit 4101bed

Please sign in to comment.