Great advice Erick, kindly appreciated.
I removed PorterStemFilter as you suggested and it worked as one would
expect it to. Very useful to learn about avoiding KeywordTokenizerFactory,
the limitation of the WhitespaceTokenizer and the testing approach.
Best,
Phil
On Wed, Aug 5, 2020 at 8:37 PM
First of all, lots of attachments are stripped by the mail server so a number
of your attachments didn’t come through, although your field definitions did so
we can’t see your results.
KeywordTokenizerFactory is something I’d avoid at this point. It doesn’t break
up the input at all, so input o
Hello,
I've had a break-through with my partial string search problem, I don't
understand why though.
I found yet another example,
https://medium.com/aubergine-solutions/partial-string-search-in-apache-solr-4b9200e8e6bb
and this one uses a different tokenizer, whitespaceTokenizerFactory
let's analyse your query requirement :
On 15 October 2015 at 03:08, Brian Narsi wrote:
>
> 1) cardinal healthcare products
> 2) cardinal healthcare
> 3) postoperative cardinal healthcare
> 4) surgical cardinal products
>
>
> q=SellerName:cardinal - all 4 records returned
> q=SellerName:healthca
Thank you Erick. Yes it was the default search field.
So for the following SellerName:
1) cardinal healthcare products
2) cardinal healthcare
3) postoperative cardinal healthcare
4) surgical cardinal products
My requirement is:
q=SellerName:cardinal - all 4 records returned
q=SellerName:healthca
try adding &debug=true to your query. The query
q=SellerName:cardinal he
actually parses as
q=SellerName:cardinal defaultSearchField:he
so I suspect you're getting on the default search field.
I'm not sure EdgeNGram is what you want here though.
That only grams individual tokens, so CARDINAL is g
Thanks for your reply!
The version I am using is 3.6. I have deleted the document and added it
again as a single field. Now I see the result as expected. I am also using
the standard stop word list. There is no stop words for both "Engergy" and
"Field".
The search field "text" is a copy field of
Add &debugQuery=true to your query request and look at the "explain"
section. The scores will indicate why a document ranks as it does.
When you say that your query was "Energy Field", was that a quoted phrase or
just two keywords? I assume the latter. I also assume that you were using
the "OR