RE: [OT] Search string tokenizer

2004-03-16 Thread Hibbs, David
National Insurance Company -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 3:20 PM To: [EMAIL PROTECTED] Subject: [OT] Search string tokenizer I did a google search on this and didn't really come up with anything useful. Before I

RE: [OT] Search string tokenizer

2004-03-16 Thread Robert Taylor
Cool! I'll take a look. Thanks David. robert -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 9:20 AM To: 'Robert Taylor'; [EMAIL PROTECTED] Subject: RE: [OT] Search string tokenizer I wrote some code to do this for an open-source

[OT] Search string tokenizer

2004-03-15 Thread Robert Taylor
I did a google search on this and didn't really come up with anything useful. Before I implement this myself, is there an existing implementation of parsing a search string which would produce tokens similar to how Google or other search engines parse search strings. For example, I would like to

Re: [OT] Search string tokenizer

2004-03-15 Thread Larry Meadors
String.split() may be able to do that if you are a regex stud (or know one...or are good with google).. Larry [EMAIL PROTECTED] 03/15/04 2:20 PM I did a google search on this and didn't really come up with anything useful. Before I implement this myself, is there an existing implementation of

Re: [OT] Search string tokenizer

2004-03-15 Thread Jason Lea
Regular Expressions should work: There are a few implementations too like http://jakarta.apache.org/oro/index.html With a pattern like this: (.+|[\d\w]*) You should get close to what you need (i think the above will return the space character as a token too, not sure). And here is a program

Re: [OT] Search string tokenizer

2004-03-15 Thread Michael McGrady
I have not investigated this at all, but Lucene should, if it doesn't, do this. At 01:20 PM 3/15/2004, you wrote: I did a google search on this and didn't really come up with anything useful. Before I implement this myself, is there an existing implementation of parsing a search string which

RE: [OT] Search string tokenizer

2004-03-15 Thread Robert Taylor
- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 5:30 PM To: Struts Users Mailing List Subject: Re: [OT] Search string tokenizer Regular Expressions should work: There are a few implementations too like http://jakarta.apache.org/oro/index.html With a pattern