Erik,
They both use the StandardAnalyzer... however looking at the toString() makes
everything clearer. In the case a string has the following email address:
[EMAIL PROTECTED], it gets split like so: first.last domain.com
However in 1.4 it does not get split.
So now we just check to see if an i
What does toString() return for each of those queries? Are you using
the same analyzer in both cases?
Erik
On Dec 22, 2004, at 5:44 PM, [EMAIL PROTECTED] wrote:
Hi guys,
We have an index with some fields containing email addresses. Doing a
search for an email address with this format:
Hi guys,
We have an index with some fields containing email addresses. Doing a search
for an email address with this format: [EMAIL PROTECTED], does not bring up any
results with lucene 1.4.
The query: "Field1:[EMAIL PROTECTED]"
However it returns results with 1.2. Any ideas?
Roy.
Hi Dimitri
What analyzer you use?
You need take carefully with Keyword fields and analyzers. When you
index a Document, the fields that have set tokenized = false, like
Keyword, are not analyzed.
In search time you need parse the query with your analyzer but not
analyze the untokenized fields, l
yes
-Original Message-
From: Dmitrii PapaGeorgio [mailto:[EMAIL PROTECTED]
Sent: Monday, August 16, 2004 9:23 AM
To: [EMAIL PROTECTED]
Subject: index and search question
Ok so when I index a file such as below
Document doc = new Document();
doc.Add(Field.Text("contents&
Ok so when I index a file such as below
Document doc = new Document();
doc.Add(Field.Text("contents", new StreamReader(dataDir)));
doc.Add(Field.Keyword("filename", dataDir));
I can do a search as this
"+contents:SomeWord +filename:SomePath"
Correct?
---
Ok so when I index a file such as below
Document doc = new Document();
doc.Add(Field.Text("contents", new StreamReader(dataDir)));
doc.Add(Field.Keyword("filename", dataDir));
I can do a search as this
"+contents:SomeWord +filename:SomePath"
Correct?
---
On Sun, Jun 20, 2004 at 09:46:42AM +, Dmitrii PapaGeorgio wrote:
> Let's say I index documents using this
>
> Document doc = new Document();
> doc.add(Field.Text("file1", (Reader) new InputStreamReader(is)));
> doc.add(Field.Text("file2", (Reader) new InputStreamReader(is2)));
>
Let's say I index documents using this
Document doc = new Document();
doc.add(Field.Text("file1", (Reader) new InputStreamReader(is)));
doc.add(Field.Text("file2", (Reader) new InputStreamReader(is2)));
And want to do a search like this
file1:Word file2:Word2
Basically doing a search
On Wednesday, November 26, 2003, at 11:08 AM, Pleasant, Tracy wrote:
But now i have another question.
Let's say I have 'return_results.pl' in the document in one of the
fields.
Actually there is a little bit more to it than understanding the
analysis phase, and you were right in saying you need
On Wednesday, November 26, 2003, at 11:08 AM, Pleasant, Tracy wrote:
But now i have another question.
Let's say I have 'return_results.pl' in the document in one of the
fields.
When I search for return_res* or return_res~ it won't return the
document.
But searching for any of these does return th
On Wednesday, November 26, 2003, at 11:33 AM, Pleasant, Tracy wrote:
Your website says:
org.apache.lucene.analysis.standard.StandardAnalyzer:
[xy&z] [corporation] [EMAIL PROTECTED] [com]
When I run it it keeps the entire email '[EMAIL PROTECTED]
but according to your website it separa
does numbers but I need it to be a little
different of course. Thanks for the site.
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 4:58 AM
To: Lucene Users List
Subject: Re: Search Question - not returning desired results
On Tuesday, N
ve to read more about the '*' and '~'?
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 4:58 AM
To: Lucene Users List
Subject: Re: Search Question - not returning desired results
On Tuesday, November 25, 2003, at 12:11 P
Thanks this helps a lot :)
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 4:58 AM
To: Lucene Users List
Subject: Re: Search Question - not returning desired results
On Tuesday, November 25, 2003, at 12:11 PM, Pleasant, Tracy
On Tuesday, November 25, 2003, at 12:11 PM, Pleasant, Tracy wrote:
The documents I have index contain information regarding file names
also.
For instance 'return_results.pl' or something like that may be in the
document fields.
I am not understanding Lucene's way of searching:
1. If I search
ure why it does
that.
>
> I am using standard analyzer, too.
>
> -Original Message-
> From: Dror Matalon [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2003 12:22 PM
> To: Lucene Users List
> Subject: Re: Search Question
>
>
> No, but if you use
gt;
> -Original Message-
> From: Dror Matalon [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2003 12:22 PM
> To: Lucene Users List
> Subject: Re: Search Question
>
>
> No, but if you use the standard analyzer searching "red*" will return
> doc
You have to look at Analyzers.
Figure out which one you are using and why, and see if you should be
using a different one or even write your own.
Some of the Analyzers break input on certain tokens (e.g. . or _ or
...), which sounds like the problem is here.
I think Erik's java.net article about L
Also searching 'red_*' returns nothing, also.
-Original Message-
From: Dror Matalon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 12:22 PM
To: Lucene Users List
Subject: Re: Search Question
No, but if you use the standard analyzer searching "red*" w
How come if I search for 'red_car*' it returns nothing.
I am using standard analyzer, too.
-Original Message-
From: Dror Matalon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 12:22 PM
To: Lucene Users List
Subject: Re: Search Question
No, but if you use th
No, but if you use the standard analyzer searching "red*" will return
documents with "read_car"
On Tue, Nov 25, 2003 at 12:00:01PM -0500, Pleasant, Tracy wrote:
>
> If I have words within a document like
>
> red_car
>
> If I search for 'red' would it return documents containing 'red_car'?
The documents I have index contain information regarding file names also.
For instance 'return_results.pl' or something like that may be in the document fields.
I am not understanding Lucene's way of searching:
1. If I search for 'return_results', the search does not return anything
2. If I sea
If I have words within a document like
red_car
If I search for 'red' would it return documents containing 'red_car'?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
-Original Message-
From: Richard Gregor [mailto:Richard.Gregor@;sun.com]
Sent: Friday, October 18, 2002 3:34 PM
To: [EMAIL PROTECTED]
Subject: keyword search question
Hi,
is it possible to use meta tags in HTML pages for keyworded search using
Lucene? That means I would like to search
Hi,
is it possible to use meta tags in HTML pages for keyworded search using
Lucene? That means I would like to search in documents not using
full-text search but a I would like to search ccording to keywords
specified in pages.
Eaxample of meta tag:
Aruna,
>Hi,
>I am looking for ways to cancel a search in response to a cancel from a user
>interface. I don't see any thing like a timeout on the Searcher.search()
>method. Is there a way to terminate a search request?
You can use the low level search api with a collector that checks for
cancell
Hi,
I am looking for ways to cancel a search in response to a cancel from a user
interface. I don't see any thing like a timeout on the Searcher.search()
method. Is there a way to terminate a search request?
Aruna Raghavan
Senior Software Engineer
OPIN Systems SPC
--
To unsubscribe, e-mail:
28 matches
Mail list logo