geonetwork/core-geonetwork — pull request #525 by fxprunayre (2014-05-28 15:48:38+00:00)
Title: ISO19139 / Index keyword by type and thesaurus code.

Advanced field are created to make more detailed query on keyword type and to search by thesaurus. Index size is bigger but more detailed facets and search can be configured based on each thesaurus.

2 Lucene fields are added:
* field thesaurus-{{thesaurusIdentifier}}={{keyword}} allows to group all keywords of same thesaurus in a field
* field thesaurusType{{type}}={{keyword}} allows to group all keywords of same type in a field

![image](https://cloud.githubusercontent.com/assets/1701393/3106809/667e9080-e67f-11e3-8ae9-46eb4fd62208.png)

To setup facet on those new fields use a configuration like:
```

```

Previous configuration can be restored by setting indexAllKeywordDetails to false.