Skip to content

D2 xPlore search on apostrophes

When using the D2 searches you are likely to go into trouble regarding special characters such as apostrophes. The goal in this blog is to show you how to parameterize new special character searches.

In many documents you’ll have text with apostrophes or special characters that you want to search on. But unfortunately by default the D2 search will return nothing when you enter apostrophes directly into the search bar. The xPlore will replace special characters by spaces and store the two words one after the other to match them more easily in this order.

In fact this is not a D2 issue. Your xPlore is likely to not be set for special characters handling. By default xPlore is set to recognize apostrophes but in Word for example you have different kind of apostrophes. These characters have a different ascii code, so xPlore doesn’t recognize them.

To solve this issue you simply have to tell xPlore to handle Word’s apostrophes (or whatever character you want to search on).
In order to do this, login to your xPlore server then edit the following file:

Path
$DSEARCH_HOME/config/indexserverconfig.xml
Find the line with:

Line
special-characters="@#$%^_~`&:.()-+='/[]{}" context-characters="!,;?""
Then add your apostrophes or special characters as follow (copy and past directly from Word to the file):

New Line
"@#$%^_~`&:.()-+='/[]{}’‘„“"
And save the file.

Now, new indexed documents can be searched with apostrophes. But note that if you want the older documents to be searchable as well, you will need to re-index the whole repository.

Let’s work together

Ready to operate at
the next level?

Tell us about your challenge. We’ll bring the depth, the expertise, and the Swiss precision.

Middleware Team

Middleware Team

Posts published under the Middleware Team account are collective contributions by the dbi services middleware and enterprise content management consultants. The practice covers ECM platforms such as OpenText Documentum, Alfresco, and M-Files, as well as application servers and integration technologies including WebLogic, JBoss, Tomcat, and the Elastic Stack, from architecture and deployment to operations under service level agreements.View Author posts

322 posts since February 2013

Leave a Comment

Your email address will not be published. Required fields are marked *