Regex for legal user search input

2005-07-27 Thread Derek Westfall
Is there a way to allow users to use + and - and special operators in free-text searches, but also allow them to search for a last name like Smith-Jones? (which I'd have to escape?) Is there a regular expression to determine/fix this kind of user input so it is queryparser-legal? Ie they can't ju

RE: Analyzer or QueryParser problem?

2005-07-26 Thread Derek Westfall
r did. Oh, you use MFQP. It may have a main method, too, I'd have to check... To simplify, try getting it working with the regular QueryParser first. Otis --- Derek Westfall <[EMAIL PROTECTED]> wrote: > I am working on a business directory app. > > As you would expect, som

Analyzer or QueryParser problem?

2005-07-26 Thread Derek Westfall
I am working on a business directory app. As you would expect, some companies have unusual names. My first problem is the company with title: "GM:Systems" I indexed the title field as a text field with the English standardAnalyzer. Searching on "GM Systems" will turn it up, but searching on "GM:

RE: Searching for similar documents

2005-07-20 Thread Derek Westfall
Your solution below is undoubtedly my problem. I didn't even consider the need to create all those directory levels. I'm sure that will solve it! -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 1:31 PM To: java-user@lucene.apache.org Subject

RE: Searching for similar documents

2005-07-20 Thread Derek Westfall
PM To: java-user@lucene.apache.org Subject: Re: Searching for similar documents On Jul 20, 2005, at 1:47 PM, Derek Westfall wrote: > I hope you will forgive the newbie question but do I have to add the > MoreLikeThis.class file to the Lucene-1.4.3.JAR for it to work? > > I put the

RE: Searching for similar documents

2005-07-20 Thread Derek Westfall
I hope you will forgive the newbie question but do I have to add the MoreLikeThis.class file to the Lucene-1.4.3.JAR for it to work? I put the .class file in my \wwwroot\web-inf\classes folder and I am getting an error I don't understand when trying to instantiate the object from Cold Fusion. I al

RE: Searching for similar documents

2005-07-19 Thread Derek Westfall
I've been trying to compile the .java into a .class and I am getting the error below. Any idea what I am missing? Thanks, Derek C:\CFusionMX\wwwroot\WEB-INF\classes>javac morelikethis.java -classpath c:\cfusi onmx\lib\lucene-1.4.3.jar morelikethis.java:509: cannot resolve symbol symbol : vari