Closed (fixed)
Project:
Search API Solr
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2015 at 13:45 UTC
Updated:
19 Oct 2015 at 09:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
maximpodorov commentedComment #2
drunken monkeyHuh, you're right. Actually, I'm not sure why we would ever want to trim a value there? If a value with a leading/trailing space is coming in, there's gotta be a reason for that. Also, for fulltext fields it won't matter anyways, and I think numeric values would probably get trimmed automatically.
So, actually I'd say we can just remove this line? Patch attached.
In any case, thanks a lot for reporting and providing a patch!
Comment #3
cristiroma commentedI've just tested this the following way:
1. Attached a text field to Article
2. Added the field to the Index as string & updated the index
3. Created a solr view exposing a filter on the field
Here's the result in Solr console:
Without the patch:
With patch:
So the content is untrimmed and we have 1 hit coming from Solr
Comment #4
drunken monkeyOK, great to hear. Thanks for testing!
Committed.
Thanks again also to maximpodorov!