I have question ... when we delete a document  .. will all the indexes
generated for that document wont be get deleted? and when we add new
document , it wont be get checked against schema.xml ...

On 22 July 2015 at 20:04, Jack Krupansky <jack.krupan...@gmail.com> wrote:

> Is this a feature or a bug of Solr? Seriously, maybe it is convenient to be
> able to change the schema without reindexing documents that don't care
> about the schema change, but it is definitely a support headache. I mean,
> how many times have we had to ask that question on this list since the
> current schema may not match the schema when existing documents were
> indexed.
>
> Maybe Solr should check the schema against the index on core load and fail
> if the schema doesn't match, but have an override option to "allow
> schema/index mismatch" for more expert users.
>
> If anybody else thinks this would be reasonable, please file a Jira.
> Otherwise ignore my mild rant against yet another of the maddening features
> of Solr.
>
> -- Jack Krupansky
>
> On Wed, Jul 22, 2015 at 10:17 AM, Alessandro Benedetti <
> benedetti.ale...@gmail.com> wrote:
>
> > I find so hard to believe you can search without the inverted index :)
> >
> > Are you sure you didn't have in your index some documents with that field
> > indexed, before you did the change and put it as not indexed ?
> >
> > Changes in the schema don't apply to already indexed documents ( if you
> > don't go with a re-index) .
> >
> > Can you run your query in debug mode and show us if any strange query
> > parsing is happening ( not much likely to happen, but let's check)  ?
> >
> > Cheers
> >
> > 2015-07-22 15:10 GMT+01:00 Mikhail Khludnev <mkhlud...@griddynamics.com
> >:
> >
> > > What do you see at Session browser for this field?
> > >
> > > On Wed, Jul 22, 2015 at 4:49 PM, santhosh kumar <santhosh...@gmail.com
> >
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I have started practicing Solr recently and my understanding on the
> > field
> > > > type properties "index=false", is that field is not searchable.
> > > >
> > > > But when I execute the below query I got the results.
> > > >
> > > >
> > > >
> > >
> >
> http://localhost:8494/solr/myfirstcore/select?q=cat%3Asoftware&wt=json&indent=true
> > > >
> > > > configured in schema.xml :
> > > > ---------------------------------------
> > > >
> > > > <field name="cat" type="string" indexed="false" stored="true"
> > > > multiValued="false"/>
> > > >
> > > >
> > > > I have uploaded the below document:
> > > > ----------------------------------------------------
> > > >
> > > > <add>
> > > > <doc>
> > > >   <field name="id">SOLR1000</field>
> > > >   <field name="name">Solr, the Enterprise Search Server</field>
> > > >   <field name="manu">Apache Foundation</field>
> > > >   <field name="cat">software</field>
> > > >   <field name="features">Advanced Full-Text Search Capabilities using
> > > > Lucene</field>
> > > >   <field name="features">Optimized for High Volume Web
> Traffic</field>
> > > >   <field name="features">Standards Based Open Interfaces - XML and
> > > > HTTP</field>
> > > >   <field name="features">Comprehensive HTML Administration
> > > > Interfaces</field>
> > > >   <field name="features">Scalability - Efficient Replication to other
> > > Solr
> > > > Search Servers</field>
> > > >   <field name="features">Flexible and Adaptable with XML
> configuration
> > > and
> > > > Schema</field>
> > > >   <field name="features">Good unicode support: h&#xE9;llo (hello with
> > an
> > > > accent over the e)</field>
> > > >   <field name="price">0.0</field>
> > > >   <field name="popularity">10</field>
> > > >   <field name="inStock">true</field>
> > > >   <field name="incubationdate_dt">2006-01-17T00:00:00.000Z</field>
> > > > </doc>
> > > > </add>
> > > >
> > > > Regards,
> > > > santhosh
> > > >
> > >
> > >
> > >
> > > --
> > > Sincerely yours
> > > Mikhail Khludnev
> > > Principal Engineer,
> > > Grid Dynamics
> > >
> > > <http://www.griddynamics.com>
> > > <mkhlud...@griddynamics.com>
> > >
> >
> >
> >
> > --
> > --------------------------
> >
> > Benedetti Alessandro
> > Visiting card - http://about.me/alessandro_benedetti
> > Blog - http://alexbenedetti.blogspot.co.uk
> >
> > "Tyger, tyger burning bright
> > In the forests of the night,
> > What immortal hand or eye
> > Could frame thy fearful symmetry?"
> >
> > William Blake - Songs of Experience -1794 England
> >
>

Reply via email to