Hello Otis, Do you mean that if I index the URL as a "text" field, I'll be able to do * for a given prefix because the text will be tokenized at the "/" and should suffice for my need?
Thanks, Jack > Anyhow, for your needs you could also try something simple as > http://domain/articles/2008/* to find docs with that URL prefix. > ----- Original Message ---- >> From: JLIST <[EMAIL PROTECTED]> >> To: solr-user@lucene.apache.org >> Sent: Saturday, May 3, 2008 9:59:47 PM >> Subject: startsWith? >> >> Hi, I wonder it's possible search for text/string fields that starts >> with a substring, similar to Java's startsWith function? For example, >> if I have a URL indexed as text or string field, can I find URLs that >> starts with "http://domain/articles/2008/" ? >> >> If not, what's the best way to implement a query like this? By >> splitting up the URL into sections and index them incrementally >> like below? >> >> http://domain/ >> http://domain/articles/ >> http://domain/articles/2008/