--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blacklight-development/e49ff98a-b6a4-4c2c-99cf-33bd598a1242n%40googlegroups.com.
tl;dr — {!term f=gpes_str}London
is exactly the same as gpes_str:"London"
for this particular query.
The {!query_parser_type f=field_name}query_words
syntax is something you don’t see super often when people make queries by hand — they’re generally different/safer ways to specify parsing rules for a specific (part of) your query.
The term
query parser doesn’t do any analysis (tokenizing, lowercasing, whatever), which is exactly what you want when doing a facet query — not a big change for this query, but you could do {!term f=gpes_str}Tower of London
as well and no tokenization would happen. Other common ones are {!lucene
and {!edismax
(for those query parsers) and things like the field query parser, where {!field f=myfield}Hi there
is equivalent to myfield:"Hi there"
but you don’t have to worry about enclosing/escaping double quotes by yourself.
These can be especially useful when combining different query parsers using “localparams” syntax, so you can use the normal lucene AND/OR/NOT syntax, but have different clauses parsed/analyzed in different ways.
A list of the default available ones are at https://solr.apache.org/guide/8_8/other-parsers.html
--
You received this message because you are subscribed to the Google Groups "Blacklight Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blacklight-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blacklight-development/e49ff98a-b6a4-4c2c-99cf-33bd598a1242n%40googlegroups.com.