Open peavers opened 7 years ago
Further to note: When executing the query for John S
via the Solr admin panel, I get the exact results I'm expecting. The only thing I can think of so far is how the query is encoded before being sent through to Solr. Specifically the %2B
being added?
@tractorcow any ideas?
Could it be
$this->addCopyField('Person_AuthorName', 'AuthorsPre');
Missing the fix
from AuthorsPrefix
?
No because AuthorsPre
is the name of the field in the Definitions file, which uses the AuthorsPrefix
type.
Any update on this? Facing the same issue
Yes, I think @peavers is on the right track. The %2B and + sign are possibly the cause of this, converting +
in to +%2B
, which should not happen usually.
I think I have a fix somewhere, but it's pretty ugly
It wasn't working for me because of the missing quotes in After: #cwpsearch. The doc needs to be updated. https://github.com/silverstripe/cwp/blob/master/docs/en/02_Features/01_Solr_search/07_Searching_documents.md
SilverStripe\Core\Injector\Injector: CWP\Search\CwpSearchEngine.search_index: class: MySolrSearchIndex
Hello,
Attempting to use a custom type and definition when searching but it doesn't seem to be used at all.
SearchPeopleIndex.php
Types.ss
Definitions.ss
In theory I should be able to search for
John S
and get a result for John Snow, however I get zero results. When I search forJohn
I get John Snow, and when I search forSnow
I also get John Snow, just not when searching forJohn S
...The query going to Solr looks like
Any tips or pointers for how to get this working?