Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't escape the field_type value when update the index. #19

Merged
merged 1 commit into from

2 participants

@ialiendeg

The reindex process fills the type_field value but this has to be written as is, not escaped.

@dcrec1 dcrec1 merged commit 955e93f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/acts_as_solr/instance_methods.rb
View
2  lib/acts_as_solr/instance_methods.rb
@@ -40,7 +40,7 @@ def to_solr_doc
doc.boost = validate_boost(configuration[:boost]) if configuration[:boost]
doc << {:id => solr_id,
- solr_configuration[:type_field] => Solr::Util.query_parser_escape(self.class.name),
+ solr_configuration[:type_field] => self.class.name,
solr_configuration[:primary_key_field] => record_id(self).to_s}
# iterate through the fields and add them to the document,
Something went wrong with that request. Please try again.