On the analysis screen I see the following. Not sure why the regex didnt
work. Any suggestions?
Thanks

KT
text
raw_bytes
start
end
positionLength
type
position
test
[74 65 73 74]
0
4
1
word
1
UCF
text
raw_bytes
start
end
positionLength
type
position
TEST
[54 45 53 54]
0
4
1
word
1
PCGTF
text
raw_bytes
start
end
positionLength
type
position
TEST
[54 45 53 54]
0
4
1
word
1

On Sun, Mar 6, 2016 at 9:56 AM, Binoy Dalal <binoydala...@gmail.com> wrote:

> What do you see under the analysis screen in the solr admin UI?
>
> On Sun, Mar 6, 2016 at 10:55 PM Jay Potharaju <jspothar...@gmail.com>
> wrote:
>
> > Hi,
> > I have a custom field for getting the first letter of an firstname. For
> > this I am using PatternCaptureGroupFilterFactory.
> > This is not working as expected, not able to parse the data and get the
> > first character for the string. Any suggestions on how to fix this?
> >
> >  <fieldType class="solr.TextField" name="text_firstLetter">
> >
> >       <analyzer>
> >
> >         <tokenizer class="solr.KeywordTokenizerFactory"/>
> >
> >         <filter class="solr.UpperCaseFilterFactory"/>
> >
> >         <filter class="solr.PatternCaptureGroupFilterFactory" pattern=
> > "^[a-zA-Z0-9]{0,1}" preserve_original="false"/>
> >
> >        </analyzer>
> >
> >     </fieldType>
> >
> > --
> > Thanks
> > Jay
> >
> --
> Regards,
> Binoy Dalal
>



-- 
Thanks
Jay Potharaju

Reply via email to