RE: Fields with the same name

2010-03-24 Thread Murdoch, Paul
=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

Re: Fields with the same name

2010-03-24 Thread Erick Erickson
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

Re: Fields with the same name

2008-10-15 Thread Erick Erickson
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

Re: Fields with the same name

2008-10-15 Thread Rafael Almeida
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

Re: Fields with the same name

2008-10-15 Thread Erick Erickson
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

Re: Fields with the same name?? - Was Re: Payloads and tokenizers

2008-08-20 Thread Doron Cohen
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

Re: Fields with the same name?? - Was Re: Payloads and tokenizers

2008-08-18 Thread Antony Bowesman
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

Re: Fields with the same name?? - Was Re: Payloads and tokenizers

2008-08-18 Thread Doron Cohen
> > 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