Title: Dash problem
Last modified: September 1, 2016

---

# Dash problem

 *  Resolved [JanZ](https://wordpress.org/support/users/janzaba/)
 * (@janzaba)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/dash-problem/)
 * Hello,
 * I have custom field added to index. Value of this filed is always something like
   DDDD-DD-DDD, where D is a digit. When user search via this field, he cannot find
   post. I assume it happens because of the dashes. How can i resolve this issue
   and let users find posts by this custom field?
 * Any ideas?
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/dash-problem/#post-7524126)
 * . (You’re probably better off if you add a filter that completely removes the
   dashes in date-formatted strings, instead of replacing the dashes with spaces,
   so that DDDD-DD-DD becomes DDDDDDDD.)
 *  Thread Starter [JanZ](https://wordpress.org/support/users/janzaba/)
 * (@janzaba)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/dash-problem/#post-7524141)
 * Your link doesn’t work. Will users be able to search with the dashes if I remove
   them from index? Or I need to remove them also from search string?
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/dash-problem/#post-7524203)
 * [Here’s the link again](https://www.relevanssi.com/knowledge-base/words-ampersands-cant-found/).
 * The same function handles both indexing and search terms, so they will match 
   automatically.
 *  Thread Starter [JanZ](https://wordpress.org/support/users/janzaba/)
 * (@janzaba)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/dash-problem/#post-7524210)
 * Works like a charm. Thank you for your help. 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Dash problem’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=2025044)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [dash](https://wordpress.org/support/topic-tag/dash/)

 * 4 replies
 * 2 participants
 * Last reply from: [JanZ](https://wordpress.org/support/users/janzaba/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/dash-problem/#post-7524210)
 * Status: resolved