floriansemm / SolrBundle

Solr-Integration into Symfony and Doctrine2
http://floriansemm.github.io/SolrBundle
MIT License
123 stars 72 forks source link

Field name type mapping problem #151

Closed gadelkareem closed 7 years ago

gadelkareem commented 7 years ago

Type mapper suffix is added automatically to entity properties name even the @Solr\Field(type="string", name="title") annotation is set. That results into a request to Solr with different properties than the ones in the schema. ex: title -> title_s.

Additionally, the document id value always has prefix + id as a value while searching. This results in building the SQL with a CONCAT('prefix',id) as id on the import.

gadelkareem commented 7 years ago

I figured it out.