lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: reg exp
Date Mon, 16 Jul 2007 15:37:16 GMT
I don't know if there is one, but if you need this kind of search to for example show all docs
starting with an "a" or "A", I would just add an extra field only containing the first letter.
This is *much* faster in lucene, and for many documents you don't risk the too many boolean
clauses (though you can set it very high, at the cost of memory)

Just index the first letter in a seperate field IMO (if there is nothing already done for
it in Solr at least)

Ard

> 
> Is there any way to query - find the string which first char 
> is "a" or "A".
> 
> Thanks,
> 
> Jae
> 

Mime
View raw message