cancel
Showing results for 
Search instead for 
Did you mean: 

Wildcard Search

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

Alfresco's simple search, by default seem to be doing an exact match of the search term. For e.g - if we search for Animals, it does not return anything with "Animal", it returns only "Animals". Is this the expected behavior? How to change this so that when we search for Animals, we get Animal also

Thanks
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator

andy
Champ on-the-rise
Champ on-the-rise
Hi

The default analysis does not strip out plurals - you can configure in the snowball stemmer if you want this.

Have you changed any configuration?
What is the locale for your client?
What Alfrecso version are you using?
What is the locale of the server?
What field is the data in? If it is your own property - if so what ti the definition.
What data does this field contain?
How are you running the search - locale of the client, what you typed and where.

Andy

jjacobwip
Champ in-the-making
Champ in-the-making
I believe the original post is from me but unfortunately when Alfresco moved to the new forum, it got detached from my account hence I did not see the follow up posts.

I still have the same issue, i.e.

Searching for "signs" does not bring up "sign".

You will have to explicitly search for "sign". However, the wild card search is working (sign*).

a) We have overidden the out of the box search
b) Locale is english
c) Alfresco v4.0.1
d) same locale
e) the data is in the title of the document
f) Typed "signs" expecting Alfresco to pull documents titled "sign"



jjacobwip
Champ in-the-making
Champ in-the-making
Update - I added SnowballPorterFilterFactory to Solr schema.xml and getting the desired results for the above scenario. i.e. animal and animals brings back results. However, it also brings back some additional results because of the way the filter is analysing the keywords.

Basically, animal is indexed as "anim" now, so it brings back documents that has "animation" in it.

How can this be fixed?

Thanks,
Jerry