lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Deleting documents
Date Wed, 12 Apr 2006 21:38:24 GMT

: OK, I think I fixed this bug.  Haven't added a test case yet...
: I'll get to that sometime unless someone beats me to it.
: It does sort of require a separate schema to test though (which out
: test harness doesn't really handle yet, I think)

actually the test harness *can* handle differnet schema.xml files for
different test classes (just not differnet solrconfig.xml files)

but i haven't moved/copied src/apps/SolrTest/solr/conf/schema.xml to the
test directory becausei  was waiting to solve the solrconfig.xml problem
first.


: On 4/12/06, Yonik Seeley <yseeley@gmail.com> wrote:
: > On 4/12/06, Chris Hostetter <hossman_lucene@fucit.org> wrote:
: > >
: > > : Could it be the problem is that my unique key field
: > > : is of type slong (as defined in the tutorial)?
: > >
: > > I just tried modifying the example schema to use type slong for the "id"
: > > field, and i can reproduce what you are describing -- numDocs doesn't go
: > > down, ... because the delete isn't working.
: > >
: > > I'm guessing the problem is that the code for deleting by id is assuming
: > > it can do a delete b term (which it can) but isn't running the string
: > > through the FieldType to get the internalized value first.
: >
: > Huh.. right you are.  I guess we've only used strings for ids before.
: > Marcus, unless you need to do range queries on your id field for some
: > reason, I'd suggest changing it to a string type.
: >
: > In the meantime, I'll fix that bug.
: >
: > -Yonik
:



-Hoss


Mime
View raw message