lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HotWeb <psx-g...@wanadoo.fr>
Subject search exact descriptor
Date Tue, 17 May 2011 07:27:40 GMT
Hi everybody,

I using Lucene 3.0.3 in a java application.
I search a way to have a function to match only one word in my query.
I have a field which contains descriptor of the document.
Sometimes, users must search only for a word. I have a example to give you
with the old search engine.


	mc = ( homme whitout "homme" )


Results

		(mc) homme                :  90308 hits
		(mc) "homme"              :  90003 hits
		whitout                      :    305
-------------
	Total : 305

What is the way to have a similair function ?
I tried to untokenize this field but the results is the same and the query
match like "homme*" not "homme"
Maybe if y can check the position of this term ? but want to be sure that
it's the only word with no term followed.

Sorry for my bad english :(

Thank you very much for your futur reply

Guillaume



--
View this message in context: http://lucene.472066.n3.nabble.com/search-exact-descriptor-tp2951485p2951485.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Mime
View raw message