开发者

Searching Images in Solr 3.3.0

开发者 https://www.devze.com 2023-04-03 04:51 出处:网络
I am working with Solr 3.3.0 version and I need to index and search Images. I m able to index the image files but it fails to retrieve them as search results.

I am working with Solr 3.3.0 version and I need to index and search Images. I m able to index the image files but it fails to retrieve them as search results. Can anyone of you help me out with this.

My data-config.xml is :

<dataConfig>
    <dataSource type="BinFileDataSource" name="bin"/>
    <document>
        <entity name="f" processor="FileListEntityProcessor" recursive="true" 
rootEntity="false" 
 dataSource="null"  baseDir="C:/Files" 
fileName=".*\.(DOC)|(PDF)|(XML)|(xml)|(JPEG)|(jpg)|(ZIP)|(zip)|(pdf)|(doc)" onError="skip">
            <entity name="tika-test" processor="TikaEntityProcessor" 
url="${f.fileAbsolutePath}" format="text" dataSource="bin" onError="skip"> 
                <field column="Author" name="author" meta="true开发者_运维百科"/> 
                <field column="title" name="title" meta="true"/> 
                <field column="text" name="text"/> 
                <field column="id" name="id"/>
                <field column="Keywords" name="keywords" meta="true"/> 
</entity> 
 <field column="file" name="fileName"/>
 <field column="fileAbsolutePath" name="links"/>
        </entity>
    </document>
</dataConfig>

This works fine for types other than images, I am not able to get images in search result


Ans) you have to search in solr admin page using the query in URL after indexed.. when ever you images are indexed it will display in Overview tab of solr admin .. suppose it is not displaying the documents and time in solr web pag**e the image is not indexed still iam searching the same .....

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号