I don't think so, but a quick way to check would be to look at your
index with a copy of Luke and see what the actual tokens are.
But I'm not sure it matters, I don't think you *can* make things work
out well; your query-time analysis will be...er...difficult. You only
get to specify one analyzer
=saic@lucene.apache.org
[mailto:java-user-return-45558-paul.b.murdoch=saic@lucene.apache.org
] On Behalf Of Erick Erickson
Sent: Wednesday, March 24, 2010 4:28 PM
To: java-user@lucene.apache.org
Subject: Re: Fields with the same name
I don't think so, but a quick way to check would
Yes, in terms of what you probably mean, but your first
example would index one token bar1bar2. But if you
changed your first example to (note space): they would
be entirely equivalent.
doc.add(new Field(foo,
bar1 bar2,
Field.Store.YES,
On Wed, Oct 15, 2008 at 4:22 PM, Erick Erickson [EMAIL PROTECTED] wrote:
Yes, in terms of what you probably mean, but your first
example would index one token bar1bar2. But if you
changed your first example to (note space): they would
be entirely equivalent.
doc.add(new Field(foo,
Yes, assuming as I pointed out that your input string had
whitespace between bar1 and bar2 in your first example...
Erick
On Wed, Oct 15, 2008 at 2:32 PM, Rafael Almeida [EMAIL PROTECTED]wrote:
On Wed, Oct 15, 2008 at 4:22 PM, Erick Erickson [EMAIL PROTECTED]
wrote:
Yes, in terms of what
On Tue, Aug 19, 2008 at 2:15 AM, Antony Bowesman [EMAIL PROTECTED] wrote:
Thanks for you time and I appreciate your valuable insight Doron.
Antony
I'm glad I could help!
Doron
payload and the other part for storing, i.e. something like this:
Token token = new Token(...);
token.setPayload(...);
SingleTokenTokenStream ts = new SingleTokenTokenStream(token);
Field f1 = new Field(f,some-stored-content,Store.YES,Index.NO);
Field f2 = new Field(f, ts);
Doron Cohen wrote:
The API definitely doesn't promise this.
AFAIK implementation wise it happens to be like this but I can be wrong and
plus it might change in the future. It would make me nervous to rely on
this.
I made some tests and it 'seems' to work, but I agree, it also makes me nervous