lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Ament <my.repr...@gmail.com>
Subject Searching, indexing, not matching.
Date Fri, 05 Mar 2010 22:19:33 GMT
Hey

So I just downloaded and am trying solr 1.4, wonderful tool.

One thing I noticed, I created a data config, looks something like this:

<dataConfig>
<dataSource type="JdbcDataSource" driver="oracle.jdbc.pool.OracleDataSource"
url="jdbc:oracle:thin:@..." user="..." password="..."/>
<document>
    <entity name="product" query="select product_id as id,vendor_label_name,
sku2, style,product_name,delivery_time,regular_price,
copy_field,bullet1,bullet2,bullet3,bullet4,bullet5,bullet6,
bullet7,bullet8,bullet9,bullet10,bullet11,bullet12 from product_v where
status_code = 'ACTV' and regular_master_variant in (2,3)"/>
</document>
</dataConfig>

It loads all of the entries fine.

I added the following to my schema.xml, to match the above

    <field name="vendor_label_name" type="textgen" indexed="true"
stored="true"/>
    <field name="sku2" type="string" indexed="true" stored="true"/>
    <field name="product_name" type="textgen" indexed="true" stored="true"/>

    <field name="delivery_time" type="string" indexed="true" stored="true"/>
    <field name="regular_price" type="string" indexed="true" stored="true"/>
    <field name="style" type="string" indexed="true" stored="true"/>
    <field name="copy_field" type="textgen" indexed="true" stored="true"/>
    <field name="bullet1" type="textgen" indexed="true" stored="true"/>
    <field name="bullet2" type="textgen" indexed="true" stored="true"/>
    <field name="bullet3" type="textgen" indexed="true" stored="true"/>
    <field name="bullet4" type="textgen" indexed="true" stored="true"/>
    <field name="bullet5" type="textgen" indexed="true" stored="true"/>
    <field name="bullet6" type="textgen" indexed="true" stored="true"/>
    <field name="bullet7" type="textgen" indexed="true" stored="true"/>
    <field name="bullet8" type="textgen" indexed="true" stored="true"/>
    <field name="bullet9" type="textgen" indexed="true" stored="true"/>
    <field name="bullet10" type="textgen" indexed="true" stored="true"/>
    <field name="bullet11" type="textgen" indexed="true" stored="true"/>
    <field name="bullet12" type="textgen" indexed="true" stored="true"/>

Now when I load your default files, I'm able to get search results when I
run a query like:

/select/?indent=on&q=dell&wt=json

now I have text in my data import that includes product_name containing
"ski" or "copy_field" containing "warm," however, if I run a search for
either of those, I get no results.

I don't see anything different between how I index and how the xml files are
indexed, other than the data in the file being loaded via XML. What I do
find curious is if I give SOLR the hint of what field to look in, I do get
results.  So this does return data:

/select/?indent=on&q=product_name:*ski*&wt=json

Any ideas?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message