Didn't the queries in my reply work? Cheers Avlesh
On Fri, Nov 6, 2009 at 4:16 AM, Joel Nylund <jnyl...@yahoo.com> wrote: > Hi yes its a string, in the case of a title, it can be anything, a letter a > number, a symbol or a multibyte char etc. > > Any ideas if I wanted a query that was not a letter a-z or a number 0-9, > given that its a string? > > thanks > Joel > > > On Nov 4, 2009, at 9:10 AM, Jonathan Hendler wrote: > > Hi Joel, >> >> The ID is sent back as a string (instead of as an integer) in your >> example. Could this be the cause? >> >> - Jonathan >> >> On Nov 4, 2009, at 9:08 AM, Joel Nylund wrote: >> >> Hi, I have a field called firstLetterTitle, this field has 1 char, it can >>> be anything, I need help with a few queries on this char: >>> >>> 1.) I want all NON ALPHA and NON numbers, so any char that is not A-Z or >>> 0-9 >>> >>> I tried: >>> >>> >>> http://localhost:8983/solr/select?q=NOT%20firstLetterTitle:0%20TO%209%20AND%20NOT%20firstLetterTitle:A%20TO%20Z >>> >>> But I get back numeric results: >>> >>> <doc> >>> <str name="firstLetterTitle">9</str> >>> <str name="id">23946447</str> >>> </doc> >>> >>> >>> 2.) I want all only Numerics: >>> >>> http://localhost:8983/solr/select?q=firstLetterTitle:0%20TO%209 >>> >>> This seems to work but just checking if its the right way. >>> >>> >>> >>> 2.) I want all only English Letters: >>> >>> http://localhost:8983/solr/select?q=firstLetterTitle:A%20TO%20Z >>> >>> This seems to work but just checking if its the right way. >>> >>> >>> thanks >>> Joel >>> >>> >> >