Second possibility: You've somehow indexed fields as
"string" type rather than one of the text based fieldTypes.
"string" types are not tokenized, thus a field with
"My dog has fleas" will fail to find "My". It'll even not match
"my dog has fleas" (note capital "M").

That appears to be the issue. Searching for name:Foundation indeed returns
the expected result. I will now go find some better entry point to SOLR
than the tutorial, which has wasted enough of my time for one day. Any
suggestions would be welcome.

James

On Fri, Sep 16, 2016 at 11:40 AM, Erick Erickson <erickerick...@gmail.com>
wrote:

> My bet:
> the fields (look in managed_schema or, possibly schema.xml)
> has stored="true" and indexed="false" set for the fields
> in question.
>
> Pretty much everyone takes a few passes before this really
> makes sense. "stored" means you see the results returned,
> "indexed" must be true before you can search on something.
>
> Second possibility: You've somehow indexed fields as
> "string" type rather than one of the text based fieldTypes.
> "string" types are not tokenized, thus a field with
> "My dog has fleas" will fail to find "My". It'll even not match
> "my dog has fleas" (note capital "M").
>
> The admin UI>>select core>>analysis page will show you
> lots of this kind of detail, although I admit it takes a bit to
> understand all the info (do un-check the "verbose" button
> for the nonce).
>
> Now, all that aside, please show us the field definition for
> one of the fields in question and, as John mentions, the exact
> query (I'd also ass &debugQuery=true to the results).
>
> Saying you followed the exact instructions somewhere isn't
> really helpful. It's likely that there's something innocent-seeming
> that was done differently. Giving the information asked for
> will help us diagnose what's happening and, perhaps,
> improve the docs if we can understand the mis-match.
>
> Best,
> Erick
>
> On Fri, Sep 16, 2016 at 8:28 AM, Pritchett, James
> <jpritch...@learningally.org> wrote:
> > I am following the exact instructions in the tutorial: copy and pasting
> all
> > commands & queries from the tutorial:
> > https://lucene.apache.org/solr/quickstart.html. Where it breaks down is
> > this one:
> >
> > http://localhost:8983/solr/gettingstarted/select?wt=json&;
> indent=true&q=name:foundation
> >
> > This returns no results. Tried in the web admin view as well, also tried
> > various field:value combinations to no avail. Clearly something didn't
> get
> > configured correctly, but I saw no error messages when running all the
> data
> > loads, etc. given in the tutorial.
> >
> > Sorry to be so clueless, but I don't really have anything to go on for
> > troubleshooting besides asking dumb questions.
> >
> > James
> >
> > On Fri, Sep 16, 2016 at 11:24 AM, John Bickerstaff <
> j...@johnbickerstaff.com
> >> wrote:
> >
> >> Please share the exact query syntax?
> >>
> >> Are you using a collection you built or one of the examples?
> >>
> >> On Fri, Sep 16, 2016 at 9:06 AM, Pritchett, James <
> >> jpritch...@learningally.org> wrote:
> >>
> >> > I apologize if this is a really stupid question. I followed all
> >> > instructions on installing Tutorial, got data loaded, everything works
> >> > great until I try to query with a field name -- e.g.,
> name:foundation. I
> >> > get zero results from this or any other query which specifies a field
> >> name.
> >> > Simple queries return results, and the field names are listed in those
> >> > results correctly. But if I query using names that I know are there
> and
> >> > values that I know are there, I get nothing.
> >> >
> >> > I figure this must be something basic that is not right about the way
> >> > things have gotten set up, but I am completely blocked at this point.
> I
> >> > tried blowing it all away and restarting from scratch with no luck.
> Where
> >> > should I be looking for problems here? I am running this on a MacBook,
> >> OS X
> >> > 10.9, latest JDK (1.8).
> >> >
> >> > James
> >> >
> >> > --
> >> >
> >> >
> >> > *James Pritchett*
> >> >
> >> > Leader, Process Redesign and Analysis
> >> >
> >> > ______________________________
> >> >
> >> >
> >> > *Learning Ally™*Together It’s Possible
> >> > 20 Roszel Road | Princeton, NJ 08540 | Office: 609.243.7608
> >> >
> >> > jpritch...@learningally.org
> >> >
> >> > www.LearningAlly.org <http://www.learningally.org/>
> >> >
> >> > Join us in building a community that helps blind, visually impaired &
> >> > dyslexic students thrive.
> >> >
> >> > Connect with our community: *Facebook*
> >> > <https://www.facebook.com/LearningAlly.org> | *Twitter*
> >> > <https://twitter.com/Learning_Ally> | *LinkedIn*
> >> > <https://www.linkedin.com/groups?home=&gid=2644842&trk=anet_ug_hm> |
> >> > *Explore1in5* <http://www.explore1in5.org/> | *Instagram*
> >> > <https://instagram.com/Learning_Ally/> | *Sign up for our community
> >> > newsletter* <https://go.learningally.org/about-learning-ally/stay-in-
> >> > touch/>
> >> >
> >> > Support us: *Donate*
> >> > <https://go.learningally.org/about-learning-ally/donate/> |
> *Volunteer*
> >> > <https://go.learningally.org/about-learning-ally/
> >> > volunteers/how-you-can-help/>
> >> >
> >>
> >
> >
> >
> > --
> >
> >
> > *James Pritchett*
> >
> > Leader, Process Redesign and Analysis
> >
> > ______________________________
> >
> >
> > *Learning Ally™*Together It’s Possible
> > 20 Roszel Road | Princeton, NJ 08540 | Office: 609.243.7608
> >
> > jpritch...@learningally.org
> >
> > www.LearningAlly.org <http://www.learningally.org/>
> >
> > Join us in building a community that helps blind, visually impaired &
> > dyslexic students thrive.
> >
> > Connect with our community: *Facebook*
> > <https://www.facebook.com/LearningAlly.org> | *Twitter*
> > <https://twitter.com/Learning_Ally> | *LinkedIn*
> > <https://www.linkedin.com/groups?home=&gid=2644842&trk=anet_ug_hm> |
> > *Explore1in5* <http://www.explore1in5.org/> | *Instagram*
> > <https://instagram.com/Learning_Ally/> | *Sign up for our community
> > newsletter* <https://go.learningally.org/about-learning-ally/stay-in-
> touch/>
> >
> > Support us: *Donate*
> > <https://go.learningally.org/about-learning-ally/donate/> | *Volunteer*
> > <https://go.learningally.org/about-learning-ally/
> volunteers/how-you-can-help/>
>



-- 


*James Pritchett*

Leader, Process Redesign and Analysis

______________________________


*Learning Ally™*Together It’s Possible
20 Roszel Road | Princeton, NJ 08540 | Office: 609.243.7608

jpritch...@learningally.org

www.LearningAlly.org <http://www.learningally.org/>

Join us in building a community that helps blind, visually impaired &
dyslexic students thrive.

Connect with our community: *Facebook*
<https://www.facebook.com/LearningAlly.org> | *Twitter*
<https://twitter.com/Learning_Ally> | *LinkedIn*
<https://www.linkedin.com/groups?home=&gid=2644842&trk=anet_ug_hm> |
*Explore1in5* <http://www.explore1in5.org/> | *Instagram*
<https://instagram.com/Learning_Ally/> | *Sign up for our community
newsletter* <https://go.learningally.org/about-learning-ally/stay-in-touch/>

Support us: *Donate*
<https://go.learningally.org/about-learning-ally/donate/> | *Volunteer*
<https://go.learningally.org/about-learning-ally/volunteers/how-you-can-help/>

Reply via email to