Hey Jim:
I'm not sure if Standard Analyzer would do this for any such character,
unless you qualified the pre-pended string and a period so it fits Standard
Analyzer's definition for HOST.

However, if you want, you could add a Filter that you use after the Standard
Analyzer's Filters  are done that pre-pends the XXX= to all of those certain
terms, after they are don being analyzed.

drago

On Fri, Aug 21, 2009 at 12:54 PM, <oh...@cox.net> wrote:

> Hi,
>
> This is a kind of followup to a thread a couple of weeks ago.
>
> In my indexer, I want to pre-pend a string to certain terms to make it
> easier to search.  So for example, if I have a string "XXX", I want to add,
> say, "field1" to it, to get "field1XXX" before I index it.
>
> To make it easier to see the "XXX" part, I'd like to use some character
> between the "field1" and the "XXX", before indexing, so then users can
> search on, for example, "field1<special_character>XX*".
>
> Using an "=" would be nice, so they could search on "field1=XX*", but the
> StandardAnalyzer breaks "field1=XXX" into "field1" and "XXX", since "=" is a
> punctuation character.
>
> So, I was wondering is there any other non-alpha, non-numeric characters
> that Standard Analyzer would NOT consider a punctuation character that I
> could use?
>
> Thanks,
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


-- 
The Circle of the Dragon -- unlock the mystery that is the dragon.
http://www.blackdrago.com/index.html

"Light, seeking light, doth the light of light beguile!"
-- William Shakespeare's Love's Labor's Lost

Reply via email to