Searching substring starting at a fixed position

2008-09-11 Thread luther blisset
hi folks, I'm new to Lucene and I'm looking for a way to search a substring that starts at a fixed position. It isn't a classical substring search because it's a bit weird. I indexed a field that represents the avability of a room in a hostal during 1 year. The field is composed by 365 digits and

Re: Searching substring starting at a fixed position

2008-09-11 Thread luther blisset
t of different periods to > search for, you should change your datamodel. > Because you easly can use lucene with 1 field and 365 different tokens > (20080101, 20080102, ...20081231). > > Best regards > Karsten > > > luther blisset wrote: >> >> hi

Removing diacritics with ISOLatin1AccentFilter

2009-07-24 Thread luther blisset
Hi folks, I just upgrading Hibernate Search library of my app and so I had to upgrade Lucene too and pass from 2.2 to 2.4 version. In Lucene 2.4 the ISOLatin1AccentFilter class has changed and I can't figure how it works. I use a TwoWayFieldBridge to index the data and this is my set method: publ

Re: Removing diacritics with ISOLatin1AccentFilter

2009-07-24 Thread luther blisset
m just a newbie with Lucene.. Thanks a lot for your reply :] Simon Willnauer wrote: > > On Fri, Jul 24, 2009 at 11:41 AM, luther blisset > wrote: >> >> Hi folks, >> I just upgrading Hibernate Search library of my app and so I had to >> upgrade >> Lucene

Re: Removing diacritics with ISOLatin1AccentFilter

2009-07-24 Thread luther blisset
yes Ahmet Arslan ...this works!! I've just tested it and works nicely... really thanks.. Ahmet Arslan wrote: > > > Or alternatively: > > String test = "HÄllo HÄllo HÄllo HÄllo HÄllo"; > > ISOLatin1AccentFilter filter = new ISOLatin1AccentFilter(new > KeywordTokenizer(new St