Hello, Chris.
Thank you and Mikhail for the explanation. I'll think about changing the model
of indexing to be able to handle this case.
: DIR:true
: PATH:/root/folder1/folder2/
: NAME:folder3
: SIZE:0
...
: DIR:false
: PATH:/root/folder1/folder2/folder3/
: NAME:image.jpg
:
Hello,
We use Solr to search over a filesystem, so there are a lot of files and
folders indexed, name and path of each file are stored in different fields. The
task is to find folders by name AND containing at least one file of specific
type somewhere inside. For example, we search by phrase
Hello Sergey,
if your docs looks like:
PATH:'directory','tree','sements','test1'
FILES:'filename1','ext1','filename2','ext2','filename3','ext3','filename4','ext4'
you can search it:
+PATH:test1 +FILES:jpg
2012/2/1 Sergei Ananko asvs...@gmail.com
Hello,
We use Solr to search over a
Hello, Mikhail.
Each index record looks like:
DIR:true
PATH:/root/folder1/folder2/
NAME:folder3
SIZE:0
...
This record represents folder /root/folder1/folder2/folder3
DIR:false
PATH:/root/folder1/folder2/folder3/
NAME:image.jpg
SIZE:1234567
...
This is a file
Sergey,
Try to employ
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternTokenizerFactory
Regards
On Wed, Feb 1, 2012 at 11:59 PM, asv - gmail asvs...@gmail.com wrote:
**
Hello, Mikhail.
Each index record looks like:
DIR:true
PATH:/root/folder1/folder2/
: DIR:true
: PATH:/root/folder1/folder2/
: NAME:folder3
: SIZE:0
...
: DIR:false
: PATH:/root/folder1/folder2/folder3/
: NAME:image.jpg
: SIZE:1234567
...
: your solution). Also, in my previous example a file of specified type
: may be deeper than one level: if there are