Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Twan Goosen)

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 DefaultCC Plugin

Cc: Twan Goosen added

comment:2 Changed 9 years ago by Twan Goosen

Description: modified (diff)
Summary: Add a 'language' field for querying purposesAdd a 'languageName' field for querying purposes

name of field: language -> languageName

comment:3 Changed 9 years ago by Twan Goosen

Resolution: fixed
Status: newclosed

Fixed in [6310:6312/vlo]

comment:4 Changed 9 years ago by Twan Goosen

Further changes and query alias in r6313

Note: See TracTickets for help on using tickets.