lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaco Olivier" <>
Subject RE: why no results?
Date Tue, 08 Dec 2009 09:53:02 GMT

Try changing your TEXT field to type "text"
        <field name="text" type="----text----" indexed="true"
stored="false" multiValued="true" /> (without the ---- of course :))

That is your problem... also use the "text" type as per default examples
with SOLR distro :)

Jaco Olivier

-----Original Message-----
From: regany [] 
Sent: 08 December 2009 05:44
Subject: why no results?

hi all - newbie solr question - I've indexed some documents and can
search /
receive results using the following schema - BUT ONLY when searching on
"id" field. If I try searching on the title, subtitle, body or text
field I
receive NO results. Very confused. :confused: Can anyone see anything
obvious I'm doing wrong???? Regan.

<?xml version="1.0" ?>

<schema name="core0" version="1.1">

        <fieldtype name="string" class="solr.StrField"
sortMissingLast="true" omitNorms="true" />

<!-- general -->
        <field  name="id" type="string" indexed="true" stored="true"
multiValued="false" required="true" />
        <field name="title" type="string" indexed="true" stored="true"
multiValued="false" />
        <field name="subtitle" type="string" indexed="true"
multiValued="false" />
        <field name="body" type="string" indexed="true" stored="true"
multiValued="false" />
        <field name="text" type="string" indexed="true" stored="false"
multiValued="true" />

 <!-- field to use to determine and enforce document uniqueness. -->

 <!-- field for the QueryParser to use when an explicit fieldname is

 <!-- SolrQueryParser configuration: defaultOperator="AND|OR" -->
 <solrQueryParser defaultOperator="OR"/>

 <!-- copyFields group fields into one single searchable indexed field
speed.  -->
<copyField source="title" dest="text" />
<copyField source="subtitle" dest="text" />
<copyField source="body" dest="text" />


View this message in context:
Sent from the Solr - User mailing list archive at

Please consider the environment before printing this email. This 
transmission is for the intended addressee only and is confidential 
information. If you have received this transmission in error, please 
delete it and notify the sender. The content of this e-mail is the 
opinion of the writer only and is not endorsed by Sabinet Online Limited 
unless expressly stated otherwise.

View raw message