salut,

j'ai un petit soucis avec hsearch

dans am bd j'ai 3 champs :

name : "Test"
name : "test"
name : "Testset"

en mettant comme searchString "test", il me ressort 2 results
en mettant comme searchString "est", il me ressort 0 results

j'aurais bien aimé qu'il me disent qu'il y a 3 results a chaque fois

un peu de code ...

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
pour la methode search
			fullTextEntityManager = Search.getFullTextEntityManager(getEntityManagerFactory().createEntityManager());
			multiFieldQueryParser = new MultiFieldQueryParser(new String[] { "name"},
					new StandardAnalyzer());
 
			query = multiFieldQueryParser.parse(searchString);
 
			fullTextQuery = fullTextEntityManager.createFullTextQuery(query, CV.class);
			listCv = fullTextQuery.getResultList();
 
et sur mon champ "name" de ma class :
	@Field(index = Index.TOKENIZED, store = Store.YES)
je dois créer un autre analyzer? ce n'est pas prevu de base?

Merci