ignore symbols inside words on search

34 views
Skip to first unread message

Valentina

unread,
Oct 14, 2016, 5:11:53 AM10/14/16
to Apache Solr PHP Extension
Hi,
I want to ignore a symbol/character on search, how I have to do?

In my case, on the original file (TEI .xml extension) I have senteces like this:
Lorem ipsum d(olor) s(it) a(met), c(onsectetur) a(dipiscing) e.lit

1.  I need to be able for example to search the word "dolor" and found the match in the original file "d(olor)",
or to search "sit amet" and found the match in "s(it) a(met)".
So the ability to tell to Solr to ignore the characters (), so noindex the characters () only for the search.

2.  I also need to search the word "elit"  and found the match in the original file "e.lit"
So the ability to tell to Solr to ignore the symbol dot . inside words only for the search.

3.  I need to display the original sentence (on view mode) like original:
Lorem ipsum d(olor) s(it) a(met), c(onsectetur) a(dipiscing) e.lit

So I need to know how it can be done, and which changes I have to do.
Thanks

Valentina
Reply all
Reply to author
Forward
0 new messages