cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene search

ndk
Champ in-the-making
Champ in-the-making
I have a problem with the lucene search.

I have an input field, the user can write what he want. So if he is looking for "book" as name he can search ook, boo, o, …

how can i do this?

I can't use *, the problem is:
Note: You cannot use a * or ? symbol as the first character of a search

at the moment i use for example: (@cm\\:name:*" + inputField + "*)" and this is not working
4 REPLIES 4

lista
Star Contributor
Star Contributor
Why are you even trying to do that?
Why don't you simply let the user input the * if he want's to?

Cheers,
Lista.

mrogers
Star Contributor
Star Contributor
When we were putting together some of the searches in share we used wildcards at the front.   We found it to be confusing.

ndk
Champ in-the-making
Champ in-the-making
Why are you even trying to do that?
Why don't you simply let the user input the * if he want's to?

Cheers,
Lista.
lets say we have 5 documents and cm:name are:
- 20090102_Project1-test-1.0
- 20090102_Project1-test-1.2
- 20090102_Project2-test-1.0
- 20090102_Project1-test-2.0
- 20090102_Project3-test-1.0

if the user want to find all documents of project1, he will search on project1. that's why i use * at the front. But now sometimes alfresco find results and sometime he can't find any document…
(not with the same search-input)

so is there another solution or other wild card for this problem?

ndk
Champ in-the-making
Champ in-the-making
I think i found the problem, i can use *, but i can't enter the character - in my searchField.

Is this possible? And how can i make it work with - ?