lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: After adding field to schema, the field is not being returned in results.
Date Fri, 02 Nov 2012 14:32:40 GMT
Well, I'm at my wits end. I tried your field definitions (using the
exampledocs XML) and they work just fine. As far as if you mess up the date
on the way in, you should be seeing stack traces in your log files.

The only way I see not getting the "Sorry, no Term Info available :("
message is if you don't have any values in the field. So, my guess is that
you're not getting the format right and the docs aren't getting indexed,
but that's just a guess. You can freely sort even if there are no values at
all in a particular field. This can be indicated if you sort asc and desc
and the order doesn't change. It just means the field is defined in the
schema, not necessarily that there are any values in it.

So, I claim you have no date values in your index. The fact that you can
sort is just an artifact of sortMissingFirst/Last doing something sensible.

Next question, are you absolutely sure that your indexing program and your
searching program are pointing at the same server?

So what I'd do next is
1> create a simple XML doc that conforms to your schema and use the
post.jar tool to send it to your server. Watch the output log for any date
format exceptions.
2> Use the admin UI to insure that you can see terms in docs added this way.
3> from there back up and see what step in the indexing process isn't
working (assuming that's the problem). Solr logs help here.

Note I'm completely PHP-ignorant, I have no clue whether the formatting
you're doing is OK or not. You might try logging the value somewhere in
your php so you an post that and/or include it in your sample XML file...

Best
Erick


On Fri, Nov 2, 2012 at 10:02 AM, Dotan Cohen <dotancohen@gmail.com> wrote:

> On Thu, Nov 1, 2012 at 9:28 PM, Lance Norskog <goksron@gmail.com> wrote:
> > Have you uploaded data with that field populated? Solr is not like a
> relational database. It does not automatically populate a new field when
> you add it to the schema. If you sort on a field, a document with no data
> in that field comes first or last (I don't know which).
> >
>
> Thank you. In fact, I am being careful to try to pull up records after
> the date in which the application was updated to populate the field.
>
>
> --
> Dotan Cohen
>
> http://gibberish.co.il
> http://what-is-what.com
>

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