Skip to content

Instantly share code, notes, and snippets.

@Wesley-Lomax
Last active August 29, 2015 14:22
Show Gist options
  • Save Wesley-Lomax/1c07af497066e98311b7 to your computer and use it in GitHub Desktop.
Save Wesley-Lomax/1c07af497066e98311b7 to your computer and use it in GitHub Desktop.
Create Field to Fix Solr Exact String Matching
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/">
<sitecore>
<contentSearch>
<indexConfigurations>
<defaultSolrIndexConfiguration>
<fieldMap>
<fieldNames>
<field fieldName="some field name" returnType="string" patch:after = "field[@fieldName='title']" />
</fieldNames>
</fieldMap>
</defaultSolrIndexConfiguration>
</indexConfigurations>
</contentSearch>
</sitecore>
</configuration>
@Wesley-Lomax
Copy link
Author

Relates to this - http://www.cmsbestpractices.com/bug-how-to-fix-solr-exact-string-matching-with-sitecore/
Must be field type string for exact match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment