Hi, I've run into problems trying to achieve a seemingly simple thing. I'm indexing a bunch of files (local ones and potentially some accessible via other protocols like http or ftp) and have an index field with the url to the file, e.g. "file:/home/foo/bar.pdf". Now I want to perform two simple types of queries on this, i.e. retrieve all file records located under a certain path (e.g. file:/home/foo/*) or find the file record for an exact URL.
What I naively tried was to index the file URL in a field ("fileURL") of type string and simply perform queries like fileURL:file\:/home/foo/* and fileURL:file\:/home/foo/bar.pdf and neither one returned results. the type is defined as <fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> and the field as <field name="fileURL" type="string" indexed="true" stored="true" multiValued="false" /> I am using solr 1.4.1 and use solrj to do the indexing and querying. This seems like a rather basic requirement and obviously I am doing something wrong. I didn't find anything in the docs or the mailing list archive so far. Any help, hints, pointers would be appreciated. Robert