Is it because 'a' is a stop word? Does it return anything from 'a'?

________________________________

Hugh Spiller 
Internet Development Team 


-----Original Message-----
From: Eric Svensson [mailto:[email protected]] 
Sent: 25 February 2010 08:25
To: [email protected]
Subject: Error in the StandardAnalyzer?

Hi,



I've noticed some odd token parsing by the StandardAnalyzer when using
slash('/').

Below are four examples where I think there is error in one of them.



1. ab -> [ab]

2. /ab -> [ab]

3. a/b -> [b]

4. ab/ -> [ab]

5. aa/b -> [aa] [b]
6. a/bb - > [bb]
7. aa/bb -> [aa][bb]



Can someone explain to me why example 3 is returning [b] and not [ab],
and
why example 6 is returning [bb] instead of [a] [bb]?



Furthermore I would like to know how to make the slash character
searchable
by not removing it in the token parsing by the StandardAnalyzer.



Thanks for listening!
--------------------------------------------------------------------------------------------------
This email and any attachments are confidential and are for the use of the 
addressee only. If you are not the addressee, you must not use or disclose the 
contents to any other person. Please immediately notify the sender and delete 
the email. Statements and opinions expressed here may not represent those of 
the company. Email correspondence is monitored by the company. This information 
may be subject to Export Control Regulation. You are obliged to comply with 
such Regulations

The parent company of the Renishaw Group is Renishaw plc, registered in England 
no. 1106260. Registered Office: New Mills, Wotton-under-Edge, Gloucestershire, 
GL12 8JR, United Kingdom. Tel +44 (0) 1453 524524
--------------------------------------------------------------------------------------------------

Reply via email to