#770 closed enhancement (fixed)
Add a 'languageName' field for querying purposes
Reported by: | Twan Goosen | Owned by: | |
---|---|---|---|
Priority: | critical | Milestone: | VLO-3.3 |
Component: | VLO importer | Version: | |
Keywords: | Cc: | Twan Goosen |
Description (last modified by )
Since the replacement of the old 'language' facet with 'languageCode' (#553) searching for language names no longer hits records on basis of the language(code) facet. This will be more problematic with the addition of support for advanced querying (#762) as the syntax for limiting on one or more languages would get quite complex, e.g.:
languageCode:"code:eng"
whereas the following would be preferable:
language:English
This can be achieved by adding a field (for indexing only) called 'languageName' that takes the language name as displayed in the language facet, i.e. either the name derived from the code (for code:*) or the literal name (for name:*)
A query alias 'language' for the field 'languageName' will make it a bit nicer to query (as in the example above).
Add this new field to the 'qf' list of query fields in solrconfig.xml with an appropriate boost value.
Change History (4)
comment:1 Changed 9 years ago by
Cc: | Twan Goosen added |
---|
comment:2 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Summary: | Add a 'language' field for querying purposes → Add a 'languageName' field for querying purposes |
name of field: language -> languageName