Do you want to index the hashtags and usernames to different fields?
Probably using

http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternTokenizerFactory

will solve your problem.

However I don't fully understand the problem when you search

Thanks
Emmanuel


2012/2/15 Rohit <ro...@in-rev.com>:
> Hi,
>
>
>
> We are using solr version 3.5 to search though Tweets, I am using
> WordDelimiterFactory with the following setting, to be able to search for
> @username or #hashtags
>
>
>
> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
> generateNumberParts="1" catenateWords="1" catenateNumbers="1"
> catenateAll="0" splitOnCaseChange="0" splitOnNumerics="0"
> preserveOriginal="1" handleAsChar="@#"/>
>
>
>
> I saw the following patch but this doesn't seem to be working as I expected,
> am I missing something?
>
>
>
> https://issues.apache.org/jira/browse/SOLR-2059
>
>
>
> But searching for @username is also returning results for just username or
> #hashtag is just returning result for hastag. How can I achieve this?
>
>
>
> Regards,
>
> Rohit
>

Reply via email to