concept mention in category solr

This is an excerpt from Manning's book Solr in Action.
Table 6.2. Overview of the transformations made to the microblog text using Solr’s text analysis tools. Notice how all transformations are performed using built-in Solr text analysis tools: no custom code required!
Raw text
Transformation
How we did it with Solr
All terms Lowercased (SF's → sf's) LowerCaseFilterFactory a, at, in, with, by, on Removed from text Very common terms called “stop words” removed from the text using StopFilterFactory Drinking, learning drink, learn Stemming with KStemFilterFactory SF's sf, san francisco Apostrophes ('s) removed by WordDelimiterFilterFactory Caffé caffe Diacritic é transformed to e using ASCIIFoldingFilterFactory i-Pad ipad, i pad Hyphenated word correctly handled using WordDelimiterFilterFactory #Yummm #yumm Collapse repeated letters down to a maximum of two using PatternReplaceCharFilterFactory #SolrInAction, @ManningBooks #solrinaction, @manningbooks Hashtags and mentions correctly preserved using the WhitespaceTokenizer and WordDelimiterFilterFactory
It turns out that a few of the issues we are having with the example tweet are caused by StandardTokenizer. Specifically, StandardTokenizer is stripping the # and @ characters from hashtags and mentions respectively. In addition, it’s splitting hyphenated terms into two tokens, such as i-Pad becoming i and Pad. Consequently, queries for iPad won’t match our example document, as we saw in the previous section. We’ll see how to handle the iPad issue in a moment. For now, let’s dig into why we care about preserving the # and @ characters for hashtags and mentions.
To complement WhitespaceTokenizer’s simplistic approach to splitting on whitespace, WordDelimiterFilterFactory offers a powerful solution to resolving most issues caused by splitting on whitespace. At a high level, this filter splits a token into subwords using various parsing rules. Before we cover these rules in detail, let’s see how this filter helps us preserve the special characters on our hashtags and mentions. For our example, we configured WordDelimiterFilterFactory using the options in the following listing.
By default this filter will also strip off the # and @ characters from hashtags and mentions. But unlike StandardTokenizer, WordDelimiterFilter provides an easy way to customize which characters it treats as word delimiters by using a simple “types” mapping file, which in our example is wdfftypes.txt. Our wdfftypes.txt file contains two mappings:
\# => ALPHA @ => ALPHAThese settings map the # and @ characters to the ALPHA class, which means our instance of WordDelimiterFilter won’t treat them as word delimiters. The leading backslash on the hash sign is so that Solr won’t interpret that line as a comment when reading the wdfftypes.txt file. With this simple mapping, hashtags and mentions are preserved in our text.