Hey guys,

I am new to solr. Recently, I have configured solr which connects to hsql
database. I have a table ac_model which has two columns one is id_ac_model
and another one is ac_model. I run example-DIH and it works fine when I type
*:* and acid:*(or number) but it doesn't work when I type model:*(or some
string here). It seems I can't search model. 

The following is my configuration in data-config.xml:
<dataConfig>
    <dataSource ... />
    <document>
        <entity name="AC_MODEL" query="select * from AC_MODEL">
            <field column="ID_AC_MODEL" name="acid" />
            <field column="AC_MODEL" name="model" />
        </entity>
    </document>
</dataConfig>
schema.xml:
<fields>
    <field name="acid" type="string" indexed="true" stored="true"
required="true" /> 
    <field name="model" type="text" indexed="true" stored="true"
required="true"/>
</fields>
 <uniqueKey>acid</uniqueKey>

 
 <defaultSearchField>model</defaultSearchField>

 
 <solrQueryParser defaultOperator="OR"/>
--------------------------------------------------------------------------------
I have done some research. I have defaultSearchField and set indexed,stored
as true. Anybody can help me out? I appreciate it.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr-querying-doesn-t-return-result-tp3991424.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to