Hi,

It sounds like if you put those 4 chars in a separate field at index time you 
could apply your logic on that at search time.

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: Daniel Baughman <da...@hostworks.com>
> To: solr-user@lucene.apache.org
> Sent: Wed, March 9, 2011 12:34:54 PM
> Subject: Newb query question
> 
> Is there a way to perform string logic on the key field using a subquery  or
> some other method.
> 
> 
> 
> IE. If the left 4 characters of the key  are ABCD, then include or exclude
> those from the search.
> 
> 
> 
> Here  is the "laymans" pseudo code for what I'm wanting to do:
> 
> 
> 
> *:* AND  LEFT(KEY, 4) <> 'abcd'
> 
> 
> 
> Anyone know that one?
> 
> 

Reply via email to