lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: dash "feature", e.g. t-shirt
Date Sun, 09 May 2004 13:02:14 GMT
On May 9, 2004, at 6:56 AM, Michael Wechner wrote:
> has the follwing issue for 1.4 been resolved
>
> http://java2.5341.com/msg/4795.html

Yes.  A little JUnit test proves it:

   public void testWalMart() throws Exception {
     Query query = QueryParser.parse("Wal-Mart", "field", analyzer);
     assertEquals("Wal-Mart", query.toString("field"));

     query = QueryParser.parse("Wal+Mart", "field", analyzer);
     assertEquals("Wal+Mart", query.toString("field"));
   }

Erik



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message