Exact match in search
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vadim_Kosarev
Posted On:   Friday, September 12, 2003 12:52 AM

Hello! Could anyone help me with the next problem: I need to perform a search of a document which field must be equal my string. For example, I have the next index data: label:"happy new year", doc:1 label:"see you next year ;)", doc:2 label:"year", doc:3 I need to find documents, which field 'label' equals 'year'. All other documents, which contain 'year' as a substring should not be in the result. Using query: label:"year" searches all the documents, which field 'label' contains 'year'. This is wrong. Please, could someone pr   More>>

Hello!

Could anyone help me with the next problem:
I need to perform a search of a document which field must be equal my string.

			

For example,

I have the next index data:

label:"happy new year", doc:1
label:"see you next year ;)", doc:2
label:"year", doc:3




I need to find documents, which field 'label' equals 'year'. All other documents, which contain 'year' as a substring should not be in the result.



Using query: label:"year" searches all the documents, which field 'label' contains 'year'. This is wrong.



Please, could someone prompt me a way to solve the described problem.


Thanks in advance.    <<Less
About | Sitemap | Contact