623f3a2c84
First draft introducing solr into Koha :-) List of files : $ tree t/searchengine/ t/searchengine |-- 000_conn | `-- conn.t |-- 001_search | `-- search_base.t |-- 002_index | `-- index_base.t |-- 003_query | `-- buildquery.t |-- 004_config | `-- load_config.t `-- indexes.yaml just do `prove -r t/searchengine/**/*.t` t/lib |-- Mocks | `-- Context.pm `-- Mocks.pm provide a mock to SearchEngine syspref (set_zebra and set_solr). $ tree Koha/SearchEngine Koha/SearchEngine |-- Config.pm |-- ConfigRole.pm |-- FacetsBuilder.pm |-- FacetsBuilderRole.pm |-- Index.pm |-- IndexRole.pm |-- QueryBuilder.pm |-- QueryBuilderRole.pm |-- Search.pm |-- SearchRole.pm |-- Solr | |-- Config.pm | |-- FacetsBuilder.pm | |-- Index.pm | |-- QueryBuilder.pm | `-- Search.pm |-- Solr.pm |-- Zebra | |-- QueryBuilder.pm | `-- Search.pm `-- Zebra.pm How to install and configure Solr ? See the wiki page: http://wiki.koha-community.org/wiki/SearchEngine_Layer_RFC http://bugs.koha-community.org/show_bug.cgi?id=8233 Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
45 lines
739 B
YAML
45 lines
739 B
YAML
---
|
|
indexes:
|
|
- code: title
|
|
facetable: 1
|
|
label: Title
|
|
mandatory: 1
|
|
mappings:
|
|
- 200$a
|
|
- 210$a
|
|
- 4..$t
|
|
ressource_type: biblio
|
|
sortable: 1
|
|
type: ste
|
|
- code: author
|
|
facetable: 1
|
|
label: Author
|
|
mandatory: 0
|
|
mappings:
|
|
- 700$*
|
|
- 710$*
|
|
ressource_type: biblio
|
|
sortable: 1
|
|
type: str
|
|
- code: subject
|
|
facetable: 0
|
|
label: Subject
|
|
mandatory: 0
|
|
mappings:
|
|
- 600$a
|
|
- 601$a
|
|
ressource_type: biblio
|
|
sortable: 0
|
|
type: str
|
|
- code: biblionumber
|
|
facetable: 0
|
|
label: Biblionumber
|
|
mandatory: 1
|
|
mappings:
|
|
- 001$@
|
|
ressource_type: biblio
|
|
sortable: 0
|
|
type: int
|
|
ressource_types:
|
|
- biblio
|
|
- authority
|