You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by John Blythe <jo...@curvolabs.com> on 2017/08/16 19:26:33 UTC
entities, keepwords, and confusion
hi all,
i'm attempting to define some entities in a keepwords file that a group of
fields will use as other fields are copied into them.
my index analyzer is defined with a KeyWord tokenizer followed by the
Keepword filter and a LowerCase for the finale.
my query analyzer uses WhiteSpace for the tokenizer and then users a
shingling and lowercase filter.
if i use the phrase `Big Mac` i'll get what i expect in the Analysis tool.
if i actually query for "Big Mac" (enquoted in the query), however, it
produces this
"parsedquery":"(+DisjunctionMaxQuery((entiites_vendors:big mac)))/no_coord",
> "parsedquery_toString":"+(entiites_vendors:big mac)",
wrapping the phrase parenthetically gives the following:
> "parsedquery":"(+(DisjunctionMaxQuery((entities_vendors:(big))
> DisjunctionMaxQuery((entities_vendors:mac)))) ())/no_coord",
> "parsedquery_toString":"+((entities_vendors:(big)
> (entities_vendors:mac))) ()",
fwiw, i did double check via facets and a *:* search that my big mac was in
the data set to begin with.
i think there is a foundational category or concept i'm missing when
approaching some problems like this. i had an issue earlier in the year
that i never resolved that dealt with synonyms but was surrounded by much
of the same confusion. hopefully i can get less n00by w some help in
figuring this out.
thanks-