Thanks David,
Yes, I will probably make use of findParty service.
However the search algorithm might be really hard becuse we might get
huge number of combinations of possible substitutions of the special
characters depending on the size of the string...One simple example:
We have in the db García. But we search by Garcia - then according to
the mapping table we get the following combinations:
García
Gárciá
Gárcíá
These algorithm might get even more complicated when we try to enable
such "smart" search for more languages.
I would be grateful if someone from the community(maybe french people
also have such problematics) has some tips about this or knows about
some good implementation of this issue.
Thanks : Valentina
On Mar 27, 2009, at 12:35 AM, David E Jones wrote:
It sounds like you want to search for people, and Person is a type
of Party, so you're looking for a Party search.
There is Party search functionality in the Party Manager, it's
actually the main page there (or click on the Find menu button near
the top).
The current functionality does support non-case-sensitive searches,
but does not replace special characters with ASCII characters. You
could somewhat easily modify the findParty service (which is what
the Party Manager Find screen uses) to do that.
-David
On Mar 26, 2009, at 3:48 PM, Valentina Sirkova wrote:
Hi,
I need to implement "smart" search which should not take into
account spanish special characters, but their ascii equivalent
instead, examples are á, í and so on.
For instance we might have entered as a person last name into the
db "García", but when searching we would like to find this last
name no matter if we write "Garcia" or García.
Do we have such functionality in OFBiz and if not could you give me
some suggestions/tips for starting such implementation.
Thanks : Valentina