Re: Exact match search

2004-07-12 Thread Daniel Naber
On Monday 12 July 2004 21:17, [EMAIL PROTECTED] wrote: > I want to match documents that exactly equal a certain value, not just > contain it. Just don't tokenize your Fields, and make sure that the query also doesn't get tokenized (the easiest way to ensure that is probably to not use QueryPars

Re: Exact match search

2004-07-12 Thread Don Vaillancourt
How do you go about getting an exact match for a document that can contain hundreds of words? As I understand it, when you tokenize a document it is broken into words so really all the results you show are exact matches. At 03:17 PM 12/07/2004, you wrote: Hi, I want to match documents that exac

Re: Exact match detection

2004-05-09 Thread Ype Kingma
On Sunday 09 May 2004 08:07, Alexander Staubo wrote: > I need to detect exact matches. For example, if the query is "foo > bar", a document matching both terms "foo" and "bar" is considered an > exact match; and everything else is considered an inexact match. > > Obviously a union with "+foo +bar"

RE: Exact Match

2003-10-22 Thread Morus Walter
Wilton, Reece writes: > If I use an untokenized field, would "fox" match this as well? I need > to support both exact match searches and searches where one word exists > in the field. > couldn't you use some start/end word (that never occurs in your texts) as anchors? That is index 'XXX brown fo

RE: Exact Match

2003-10-22 Thread Wilton, Reece
Good idea! Thanks! -Original Message- From: Tate Avery [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 9:54 AM To: Lucene Users List Subject: RE: Exact Match To ensure I understand... If you have: 1) A B C 2) B C 3) B C D 4) C You want "B C" to match #

RE: Exact Match

2003-10-22 Thread Wilton, Reece
Yes, that's what I'm doing. Just wanted to see what other ideas where out there. -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 9:12 AM To: Lucene Users List Subject: Re: Exact Match There is no direct support for that

RE: Exact Match

2003-10-22 Thread Tate Avery
] Sent: October 22, 2003 12:49 PM To: Lucene Users List Subject: RE: Exact Match If I use an untokenized field, would "fox" match this as well? I need to support both exact match searches and searches where one word exists in the field. -Original Message- From: Doug Cutting [ma

RE: Exact Match

2003-10-22 Thread Wilton, Reece
Users List Subject: Re: Exact Match Wilton, Reece wrote: > Does Lucene support exact matching on a tokenized field? > > So for example... if I add these three phrases to the index: > - "The quick brown fox" > - "The quick brown fox jumped" > - "brown fox&

Re: Exact Match

2003-10-22 Thread Doug Cutting
Wilton, Reece wrote: Does Lucene support exact matching on a tokenized field? So for example... if I add these three phrases to the index: - "The quick brown fox" - "The quick brown fox jumped" - "brown fox" I want to be able to do an exact field match so when I search for "brown fox" I only get t

Re: Exact Match

2003-10-22 Thread Otis Gospodnetic
There is no direct support for that. However, if one of your documents contains _only_: "brown fox", won't a search for "brown fox" give that document the highest score, as it is the closest match, allowing you to just pop the first hit? It's no guarantee that the first hit is the exact match (wh