You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Brian Lamb <br...@journalexperts.com> on 2011/02/28 21:38:47 UTC

Indexed, but cannot search

Hi all,

I was able to get my installation of Solr indexed using dataimport. However,
I cannot seem to get search working. I can verify that the data is there by
going to:

http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on

This gives me the response: <result name="response" numFound="234961"
start="0">

But when I go to

http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&indent=on

I get the response: <result name="response" numFound="0" start="0">

I know that dog should return some results because it is the first result
when I select all the records. So what am I doing incorrectly that would
prevent me from seeing results?

Re: Indexed, but cannot search

Posted by Edoardo Tosca <e....@sourcesense.com>.
Hi,
i'm not sure if it is a typo, anyway the second query you mentioned should
be:
http://localhost:8983/solr/select/?q=type:*

HTH,

Edo

On Tue, Mar 1, 2011 at 4:06 PM, Brian Lamb <br...@journalexperts.com>wrote:

> Thank you for your reply but the searching is still not working out. For
> example, when I go to:
>
> http://localhost:8983/solr/select/?q=*%3A*<
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> >
>
> I get the following as a response:
>
> <result name="response" numFound="249943" start="0">
>  <doc>
>    <str name="type">Mammal</str>
>    <str name="id">1</str>
>    <str name="genus">Canis</str>
>  </doc>
> </response>
>
> (plus some other docs but one is enough for this example)
>
> But if I go to http://localhost:8983/solr/select/?q=type%3A<
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> >
> Mammal
>
> I only get:
>
> <result name="response" numFound="0" start="0">
>
> But it seems that should return at least the result I have listed above.
> What am I doing incorrectly?
>
> On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:
>
> > q=dog is equivalent to q=text:dog (where the default search field is
> > defined as text at the bottom of schema.xml).
> >
> > If you want to specify a different field, well, you need to tell it :-)
> >
> > Is that it?
> >
> > Upayavira
> >
> > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > <br...@journalexperts.com> wrote:
> > > Hi all,
> > >
> > > I was able to get my installation of Solr indexed using dataimport.
> > > However,
> > > I cannot seem to get search working. I can verify that the data is
> there
> > > by
> > > going to:
> > >
> > >
> >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> > >
> > > This gives me the response: <result name="response" numFound="234961"
> > > start="0">
> > >
> > > But when I go to
> > >
> > >
> >
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&indent=on
> > >
> > > I get the response: <result name="response" numFound="0" start="0">
> > >
> > > I know that dog should return some results because it is the first
> result
> > > when I select all the records. So what am I doing incorrectly that
> would
> > > prevent me from seeing results?
> > >
> > ---
> > Enterprise Search Consultant at Sourcesense UK,
> > Making Sense of Open Source
> >
> >
>



-- 
Edoardo Tosca
Sourcesense - making sense of Open Source: http://www.sourcesense.com

Re: Indexed, but cannot search

Posted by Brian Lamb <br...@journalexperts.com>.
So here's something interesting. I did a delta import this morning and it
looks like I can do a global search across those fields.

I'll do another full import and see if that fixed the problem. I had done a
fullimport after making this change but it seems like another reindex is in
order.

On Wed, Mar 2, 2011 at 10:31 AM, Markus Jelsma
<ma...@openindex.io>wrote:

> Please also provide analysis part of fieldType text. You can also use Luke
> to
> inspect the index.
>
> http://localhost:8983/solr/admin/luke?fl=globalField&numTerms=100
>
> On Wednesday 02 March 2011 16:09:33 Brian Lamb wrote:
> > Here are the relevant parts of schema.xml:
> >
> > <field name="globalField" type="text" indexed="true" stored="true"
> > multiValued="true"/>
> > <defaultSearchField>globalField</defaultSearchField>
> > <copyField source="*" dest="globalField" />
> >
> > This is what is returned when I search:
> >
> > <response>
> > -
> > <lst name="responseHeader">
> > <int name="status">0</int>
> > <int name="QTime">1</int>
> > -
> > <lst name="params">
> > <str name="q">Mammal</str>
> > <str name="debugQuery">true</str>
> > </lst>
> > </lst>
> > <result name="response" numFound="0" start="0" maxScore="0.0"/>
> > -
> > <lst name="debug">
> > <str name="rawquerystring">Mammal</str>
> > <str name="querystring">Mammal</str>
> > <str name="parsedquery">globalField:mammal</str>
> > <str name="parsedquery_toString">globalField:mammal</str>
> > <lst name="explain"/>
> > <str name="QParser">LuceneQParser</str>
> > -
> > <lst name="timing">
> > <double name="time">1.0</double>
> > -
> > <lst name="prepare">
> > <double name="time">1.0</double>
> > -
> > <lst name="org.apache.solr.handler.component.QueryComponent">
> > <double name="time">1.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.FacetComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.HighlightComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.StatsComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.DebugComponent">
> > <double name="time">0.0</double>
> > </lst>
> > </lst>
> > -
> > <lst name="process">
> > <double name="time">0.0</double>
> > -
> > <lst name="org.apache.solr.handler.component.QueryComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.FacetComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.HighlightComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.StatsComponent">
> > <double name="time">0.0</double>
> > </lst>
> > -
> > <lst name="org.apache.solr.handler.component.DebugComponent">
> > <double name="time">0.0</double>
> > </lst>
> > </lst>
> > </lst>
> > </lst>
> > </response>
> >
> > On Tue, Mar 1, 2011 at 7:57 PM, Markus Jelsma
> <ma...@openindex.io>wrote:
> > > Hmm, please provide analyzer of text and output of debugQuery=true.
> > > Anyway, if
> > > field type is fieldType text and the catchall field text is fieldType
> > > text as well
> > > and you reindexed, it should work as expected.
> > >
> > > > Oh if only it were that easy :-). I have reindexed since making that
> > >
> > > change
> > >
> > > > which is how I was able to get the regular search working. I have not
> > > > however been able to get the search across all fields to work.
> > > >
> > > > On Tue, Mar 1, 2011 at 3:01 PM, Markus Jelsma
> > >
> > > <ma...@openindex.io>wrote:
> > > > > Traditionally, people forget to reindex ;)
> > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > The problem was that my fields were defined as type="string"
> > > > > > instead
> > >
> > > of
> > >
> > > > > > type="text". Once I corrected that, it seems to be fixed. The
> only
> > >
> > > part
> > >
> > > > > > that still is not working though is the search across all fields.
> > > > > >
> > > > > > For example:
> > > > > >
> > > > > > http://localhost:8983/solr/select/?q=type%3AMammal
> > > > > >
> > > > > > Now correctly returns the records matching mammal. But if I try
> to
> > > > > > do
> > >
> > > a
> > >
> > > > > > global search across all fields:
> > > > > >
> > > > > > http://localhost:8983/solr/select/?q=Mammal
> > > > > > http://localhost:8983/solr/select/?q=text%3AMammal
> > > > > >
> > > > > > I get no results returned. Here is how the schema is set up:
> > > > > >
> > > > > > <field name="text" type="text" indexed="true" stored="false"
> > > > > > multiValued="true"/>
> > > > > > <defaultSearchField>text</defaultSearchField>
> > > > > > <copyField source="*" dest="text" />
> > > > > >
> > > > > > Thanks to everyone for your help so far. I think this is the last
> > > > > > hurdle
> > > > >
> > > > > I
> > > > >
> > > > > > have to jump over.
> > > > > >
> > > > > > On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk>
> wrote:
> > > > > > > Next question, do you have your "type" field set to
> index="true"
> > > > > > > in
> > > > >
> > > > > your
> > > > >
> > > > > > > schema?
> > > > > > >
> > > > > > > Upayavira
> > > > > > >
> > > > > > > On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> > > > > > >
> > > > > > > <br...@journalexperts.com> wrote:
> > > > > > > > Thank you for your reply but the searching is still not
> working
> > > > > > > > out. For example, when I go to:
> > > > > > > >
> > > > > > > > http://localhost:8983/solr/select/?q=*%3A*<
> > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > >
> > > > > > > dent=on
> > > > > > >
> > > > > > > > I get the following as a response:
> > > > > > > >
> > > > > > > > <result name="response" numFound="249943" start="0">
> > > > > > > >
> > > > > > > >   <doc>
> > > > > > > >
> > > > > > > >     <str name="type">Mammal</str>
> > > > > > > >     <str name="id">1</str>
> > > > > > > >     <str name="genus">Canis</str>
> > > > > > > >
> > > > > > > >   </doc>
> > > > > > > >
> > > > > > > > </response>
> > > > > > > >
> > > > > > > > (plus some other docs but one is enough for this example)
> > > > > > > >
> > > > > > > > But if I go to
> > > > > > > > http://localhost:8983/solr/select/?q=type%3A<
> > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > >
> > > > > > > dent=on
> > > > > > >
> > > > > > > > Mammal
> > > > > > > >
> > > > > > > > I only get:
> > > > > > > >
> > > > > > > > <result name="response" numFound="0" start="0">
> > > > > > > >
> > > > > > > > But it seems that should return at least the result I have
> > > > > > > > listed above. What am I doing incorrectly?
> > > > > > > >
> > > > > > > > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk>
> > >
> > > wrote:
> > > > > > > > > q=dog is equivalent to q=text:dog (where the default search
> > >
> > > field
> > >
> > > > > is
> > > > >
> > > > > > > > > defined as text at the bottom of schema.xml).
> > > > > > > > >
> > > > > > > > > If you want to specify a different field, well, you need to
> > >
> > > tell
> > >
> > > > > > > > > it
> > > > > > > > >
> > > > > > > > > :-)
> > > > > > > > >
> > > > > > > > > Is that it?
> > > > > > > > >
> > > > > > > > > Upayavira
> > > > > > > > >
> > > > > > > > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > > > > > > >
> > > > > > > > > <br...@journalexperts.com> wrote:
> > > > > > > > > > Hi all,
> > > > > > > > > >
> > > > > > > > > > I was able to get my installation of Solr indexed using
> > > > >
> > > > > dataimport.
> > > > >
> > > > > > > > > > However,
> > > > > > > > > > I cannot seem to get search working. I can verify that
> the
> > >
> > > data
> > >
> > > > > is
> > > > >
> > > > > > > there
> > > > > > >
> > > > > > > > > > by
> > >
> > > > > > > > > > going to:
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > >
> > > > > > > dent=on
> > > > > > >
> > > > > > > > > > This gives me the response: <result name="response"
> > > > > > > > > > numFound="234961" start="0">
> > > > > > > > > >
> > > > > > > > > > But when I go to
> > >
> > >
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&inde
> > >
> > > > > > > nt=on
> > > > > > >
> > > > > > > > > > I get the response: <result name="response" numFound="0"
> > > > >
> > > > > start="0">
> > > > >
> > > > > > > > > > I know that dog should return some results because it is
> > > > > > > > > > the
> > > > >
> > > > > first
> > > > >
> > > > > > > result
> > > > > > >
> > > > > > > > > > when I select all the records. So what am I doing
> > > > > > > > > > incorrectly
> > > > >
> > > > > that
> > > > >
> > > > > > > would
> > > > > > >
> > > > > > > > > > prevent me from seeing results?
> > > > > > > > >
> > > > > > > > > ---
> > > > > > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > > > > > Making Sense of Open Source
> > > > > > >
> > > > > > > ---
> > > > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > > > Making Sense of Open Source
>
> --
> Markus Jelsma - CTO - Openindex
> http://www.linkedin.com/in/markus17
> 050-8536620 / 06-50258350
>

Re: Indexed, but cannot search

Posted by Markus Jelsma <ma...@openindex.io>.
Please also provide analysis part of fieldType text. You can also use Luke to 
inspect the index. 

http://localhost:8983/solr/admin/luke?fl=globalField&numTerms=100

On Wednesday 02 March 2011 16:09:33 Brian Lamb wrote:
> Here are the relevant parts of schema.xml:
> 
> <field name="globalField" type="text" indexed="true" stored="true"
> multiValued="true"/>
> <defaultSearchField>globalField</defaultSearchField>
> <copyField source="*" dest="globalField" />
> 
> This is what is returned when I search:
> 
> <response>
> -
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">1</int>
> -
> <lst name="params">
> <str name="q">Mammal</str>
> <str name="debugQuery">true</str>
> </lst>
> </lst>
> <result name="response" numFound="0" start="0" maxScore="0.0"/>
> -
> <lst name="debug">
> <str name="rawquerystring">Mammal</str>
> <str name="querystring">Mammal</str>
> <str name="parsedquery">globalField:mammal</str>
> <str name="parsedquery_toString">globalField:mammal</str>
> <lst name="explain"/>
> <str name="QParser">LuceneQParser</str>
> -
> <lst name="timing">
> <double name="time">1.0</double>
> -
> <lst name="prepare">
> <double name="time">1.0</double>
> -
> <lst name="org.apache.solr.handler.component.QueryComponent">
> <double name="time">1.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.FacetComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.HighlightComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.StatsComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.DebugComponent">
> <double name="time">0.0</double>
> </lst>
> </lst>
> -
> <lst name="process">
> <double name="time">0.0</double>
> -
> <lst name="org.apache.solr.handler.component.QueryComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.FacetComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.HighlightComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.StatsComponent">
> <double name="time">0.0</double>
> </lst>
> -
> <lst name="org.apache.solr.handler.component.DebugComponent">
> <double name="time">0.0</double>
> </lst>
> </lst>
> </lst>
> </lst>
> </response>
> 
> On Tue, Mar 1, 2011 at 7:57 PM, Markus Jelsma 
<ma...@openindex.io>wrote:
> > Hmm, please provide analyzer of text and output of debugQuery=true.
> > Anyway, if
> > field type is fieldType text and the catchall field text is fieldType
> > text as well
> > and you reindexed, it should work as expected.
> > 
> > > Oh if only it were that easy :-). I have reindexed since making that
> > 
> > change
> > 
> > > which is how I was able to get the regular search working. I have not
> > > however been able to get the search across all fields to work.
> > > 
> > > On Tue, Mar 1, 2011 at 3:01 PM, Markus Jelsma
> > 
> > <ma...@openindex.io>wrote:
> > > > Traditionally, people forget to reindex ;)
> > > > 
> > > > > Hi all,
> > > > > 
> > > > > The problem was that my fields were defined as type="string"
> > > > > instead
> > 
> > of
> > 
> > > > > type="text". Once I corrected that, it seems to be fixed. The only
> > 
> > part
> > 
> > > > > that still is not working though is the search across all fields.
> > > > > 
> > > > > For example:
> > > > > 
> > > > > http://localhost:8983/solr/select/?q=type%3AMammal
> > > > > 
> > > > > Now correctly returns the records matching mammal. But if I try to
> > > > > do
> > 
> > a
> > 
> > > > > global search across all fields:
> > > > > 
> > > > > http://localhost:8983/solr/select/?q=Mammal
> > > > > http://localhost:8983/solr/select/?q=text%3AMammal
> > > > > 
> > > > > I get no results returned. Here is how the schema is set up:
> > > > > 
> > > > > <field name="text" type="text" indexed="true" stored="false"
> > > > > multiValued="true"/>
> > > > > <defaultSearchField>text</defaultSearchField>
> > > > > <copyField source="*" dest="text" />
> > > > > 
> > > > > Thanks to everyone for your help so far. I think this is the last
> > > > > hurdle
> > > > 
> > > > I
> > > > 
> > > > > have to jump over.
> > > > > 
> > > > > On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > > > > Next question, do you have your "type" field set to index="true"
> > > > > > in
> > > > 
> > > > your
> > > > 
> > > > > > schema?
> > > > > > 
> > > > > > Upayavira
> > > > > > 
> > > > > > On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> > > > > > 
> > > > > > <br...@journalexperts.com> wrote:
> > > > > > > Thank you for your reply but the searching is still not working
> > > > > > > out. For example, when I go to:
> > > > > > > 
> > > > > > > http://localhost:8983/solr/select/?q=*%3A*<
> > 
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > 
> > > > > > dent=on
> > > > > > 
> > > > > > > I get the following as a response:
> > > > > > > 
> > > > > > > <result name="response" numFound="249943" start="0">
> > > > > > > 
> > > > > > >   <doc>
> > > > > > >   
> > > > > > >     <str name="type">Mammal</str>
> > > > > > >     <str name="id">1</str>
> > > > > > >     <str name="genus">Canis</str>
> > > > > > >   
> > > > > > >   </doc>
> > > > > > > 
> > > > > > > </response>
> > > > > > > 
> > > > > > > (plus some other docs but one is enough for this example)
> > > > > > > 
> > > > > > > But if I go to
> > > > > > > http://localhost:8983/solr/select/?q=type%3A<
> > 
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > 
> > > > > > dent=on
> > > > > > 
> > > > > > > Mammal
> > > > > > > 
> > > > > > > I only get:
> > > > > > > 
> > > > > > > <result name="response" numFound="0" start="0">
> > > > > > > 
> > > > > > > But it seems that should return at least the result I have
> > > > > > > listed above. What am I doing incorrectly?
> > > > > > > 
> > > > > > > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk>
> > 
> > wrote:
> > > > > > > > q=dog is equivalent to q=text:dog (where the default search
> > 
> > field
> > 
> > > > is
> > > > 
> > > > > > > > defined as text at the bottom of schema.xml).
> > > > > > > > 
> > > > > > > > If you want to specify a different field, well, you need to
> > 
> > tell
> > 
> > > > > > > > it
> > > > > > > > 
> > > > > > > > :-)
> > > > > > > > 
> > > > > > > > Is that it?
> > > > > > > > 
> > > > > > > > Upayavira
> > > > > > > > 
> > > > > > > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > > > > > > 
> > > > > > > > <br...@journalexperts.com> wrote:
> > > > > > > > > Hi all,
> > > > > > > > > 
> > > > > > > > > I was able to get my installation of Solr indexed using
> > > > 
> > > > dataimport.
> > > > 
> > > > > > > > > However,
> > > > > > > > > I cannot seem to get search working. I can verify that the
> > 
> > data
> > 
> > > > is
> > > > 
> > > > > > there
> > > > > > 
> > > > > > > > > by
> > 
> > > > > > > > > going to:
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > 
> > > > > > dent=on
> > > > > > 
> > > > > > > > > This gives me the response: <result name="response"
> > > > > > > > > numFound="234961" start="0">
> > > > > > > > > 
> > > > > > > > > But when I go to
> > 
> > http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&inde
> > 
> > > > > > nt=on
> > > > > > 
> > > > > > > > > I get the response: <result name="response" numFound="0"
> > > > 
> > > > start="0">
> > > > 
> > > > > > > > > I know that dog should return some results because it is
> > > > > > > > > the
> > > > 
> > > > first
> > > > 
> > > > > > result
> > > > > > 
> > > > > > > > > when I select all the records. So what am I doing
> > > > > > > > > incorrectly
> > > > 
> > > > that
> > > > 
> > > > > > would
> > > > > > 
> > > > > > > > > prevent me from seeing results?
> > > > > > > > 
> > > > > > > > ---
> > > > > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > > > > Making Sense of Open Source
> > > > > > 
> > > > > > ---
> > > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > > Making Sense of Open Source

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Re: Indexed, but cannot search

Posted by Brian Lamb <br...@journalexperts.com>.
Here are the relevant parts of schema.xml:

<field name="globalField" type="text" indexed="true" stored="true"
multiValued="true"/>
<defaultSearchField>globalField</defaultSearchField>
<copyField source="*" dest="globalField" />

This is what is returned when I search:

<response>
-
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
-
<lst name="params">
<str name="q">Mammal</str>
<str name="debugQuery">true</str>
</lst>
</lst>
<result name="response" numFound="0" start="0" maxScore="0.0"/>
-
<lst name="debug">
<str name="rawquerystring">Mammal</str>
<str name="querystring">Mammal</str>
<str name="parsedquery">globalField:mammal</str>
<str name="parsedquery_toString">globalField:mammal</str>
<lst name="explain"/>
<str name="QParser">LuceneQParser</str>
-
<lst name="timing">
<double name="time">1.0</double>
-
<lst name="prepare">
<double name="time">1.0</double>
-
<lst name="org.apache.solr.handler.component.QueryComponent">
<double name="time">1.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.FacetComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.HighlightComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.StatsComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.DebugComponent">
<double name="time">0.0</double>
</lst>
</lst>
-
<lst name="process">
<double name="time">0.0</double>
-
<lst name="org.apache.solr.handler.component.QueryComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.FacetComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.MoreLikeThisComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.HighlightComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.StatsComponent">
<double name="time">0.0</double>
</lst>
-
<lst name="org.apache.solr.handler.component.DebugComponent">
<double name="time">0.0</double>
</lst>
</lst>
</lst>
</lst>
</response>

On Tue, Mar 1, 2011 at 7:57 PM, Markus Jelsma <ma...@openindex.io>wrote:

> Hmm, please provide analyzer of text and output of debugQuery=true. Anyway,
> if
> field type is fieldType text and the catchall field text is fieldType text
> as well
> and you reindexed, it should work as expected.
>
> > Oh if only it were that easy :-). I have reindexed since making that
> change
> > which is how I was able to get the regular search working. I have not
> > however been able to get the search across all fields to work.
> >
> > On Tue, Mar 1, 2011 at 3:01 PM, Markus Jelsma
> <ma...@openindex.io>wrote:
> > > Traditionally, people forget to reindex ;)
> > >
> > > > Hi all,
> > > >
> > > > The problem was that my fields were defined as type="string" instead
> of
> > > > type="text". Once I corrected that, it seems to be fixed. The only
> part
> > > > that still is not working though is the search across all fields.
> > > >
> > > > For example:
> > > >
> > > > http://localhost:8983/solr/select/?q=type%3AMammal
> > > >
> > > > Now correctly returns the records matching mammal. But if I try to do
> a
> > > > global search across all fields:
> > > >
> > > > http://localhost:8983/solr/select/?q=Mammal
> > > > http://localhost:8983/solr/select/?q=text%3AMammal
> > > >
> > > > I get no results returned. Here is how the schema is set up:
> > > >
> > > > <field name="text" type="text" indexed="true" stored="false"
> > > > multiValued="true"/>
> > > > <defaultSearchField>text</defaultSearchField>
> > > > <copyField source="*" dest="text" />
> > > >
> > > > Thanks to everyone for your help so far. I think this is the last
> > > > hurdle
> > >
> > > I
> > >
> > > > have to jump over.
> > > >
> > > > On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > > > Next question, do you have your "type" field set to index="true" in
> > >
> > > your
> > >
> > > > > schema?
> > > > >
> > > > > Upayavira
> > > > >
> > > > > On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> > > > >
> > > > > <br...@journalexperts.com> wrote:
> > > > > > Thank you for your reply but the searching is still not working
> > > > > > out. For example, when I go to:
> > > > > >
> > > > > > http://localhost:8983/solr/select/?q=*%3A*<
> > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > >
> > > > > dent=on
> > > > >
> > > > > > I get the following as a response:
> > > > > >
> > > > > > <result name="response" numFound="249943" start="0">
> > > > > >
> > > > > >   <doc>
> > > > > >
> > > > > >     <str name="type">Mammal</str>
> > > > > >     <str name="id">1</str>
> > > > > >     <str name="genus">Canis</str>
> > > > > >
> > > > > >   </doc>
> > > > > >
> > > > > > </response>
> > > > > >
> > > > > > (plus some other docs but one is enough for this example)
> > > > > >
> > > > > > But if I go to
> > > > > > http://localhost:8983/solr/select/?q=type%3A<
> > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > >
> > > > > dent=on
> > > > >
> > > > > > Mammal
> > > > > >
> > > > > > I only get:
> > > > > >
> > > > > > <result name="response" numFound="0" start="0">
> > > > > >
> > > > > > But it seems that should return at least the result I have listed
> > > > > > above. What am I doing incorrectly?
> > > > > >
> > > > > > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk>
> wrote:
> > > > > > > q=dog is equivalent to q=text:dog (where the default search
> field
> > >
> > > is
> > >
> > > > > > > defined as text at the bottom of schema.xml).
> > > > > > >
> > > > > > > If you want to specify a different field, well, you need to
> tell
> > > > > > > it
> > > > > > >
> > > > > > > :-)
> > > > > > >
> > > > > > > Is that it?
> > > > > > >
> > > > > > > Upayavira
> > > > > > >
> > > > > > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > > > > >
> > > > > > > <br...@journalexperts.com> wrote:
> > > > > > > > Hi all,
> > > > > > > >
> > > > > > > > I was able to get my installation of Solr indexed using
> > >
> > > dataimport.
> > >
> > > > > > > > However,
> > > > > > > > I cannot seem to get search working. I can verify that the
> data
> > >
> > > is
> > >
> > > > > there
> > > > >
> > > > > > > > by
> > >
> > > > > > > > going to:
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > >
> > > > > dent=on
> > > > >
> > > > > > > > This gives me the response: <result name="response"
> > > > > > > > numFound="234961" start="0">
> > > > > > > >
> > > > > > > > But when I go to
> > >
> > >
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&inde
> > >
> > > > > nt=on
> > > > >
> > > > > > > > I get the response: <result name="response" numFound="0"
> > >
> > > start="0">
> > >
> > > > > > > > I know that dog should return some results because it is the
> > >
> > > first
> > >
> > > > > result
> > > > >
> > > > > > > > when I select all the records. So what am I doing incorrectly
> > >
> > > that
> > >
> > > > > would
> > > > >
> > > > > > > > prevent me from seeing results?
> > > > > > >
> > > > > > > ---
> > > > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > > > Making Sense of Open Source
> > > > >
> > > > > ---
> > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > Making Sense of Open Source
>

Re: Indexed, but cannot search

Posted by Markus Jelsma <ma...@openindex.io>.
Hmm, please provide analyzer of text and output of debugQuery=true. Anyway, if 
field type is fieldType text and the catchall field text is fieldType text as well 
and you reindexed, it should work as expected.

> Oh if only it were that easy :-). I have reindexed since making that change
> which is how I was able to get the regular search working. I have not
> however been able to get the search across all fields to work.
> 
> On Tue, Mar 1, 2011 at 3:01 PM, Markus Jelsma 
<ma...@openindex.io>wrote:
> > Traditionally, people forget to reindex ;)
> > 
> > > Hi all,
> > > 
> > > The problem was that my fields were defined as type="string" instead of
> > > type="text". Once I corrected that, it seems to be fixed. The only part
> > > that still is not working though is the search across all fields.
> > > 
> > > For example:
> > > 
> > > http://localhost:8983/solr/select/?q=type%3AMammal
> > > 
> > > Now correctly returns the records matching mammal. But if I try to do a
> > > global search across all fields:
> > > 
> > > http://localhost:8983/solr/select/?q=Mammal
> > > http://localhost:8983/solr/select/?q=text%3AMammal
> > > 
> > > I get no results returned. Here is how the schema is set up:
> > > 
> > > <field name="text" type="text" indexed="true" stored="false"
> > > multiValued="true"/>
> > > <defaultSearchField>text</defaultSearchField>
> > > <copyField source="*" dest="text" />
> > > 
> > > Thanks to everyone for your help so far. I think this is the last
> > > hurdle
> > 
> > I
> > 
> > > have to jump over.
> > > 
> > > On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > > Next question, do you have your "type" field set to index="true" in
> > 
> > your
> > 
> > > > schema?
> > > > 
> > > > Upayavira
> > > > 
> > > > On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> > > > 
> > > > <br...@journalexperts.com> wrote:
> > > > > Thank you for your reply but the searching is still not working
> > > > > out. For example, when I go to:
> > > > > 
> > > > > http://localhost:8983/solr/select/?q=*%3A*<
> > 
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > 
> > > > dent=on
> > > > 
> > > > > I get the following as a response:
> > > > > 
> > > > > <result name="response" numFound="249943" start="0">
> > > > > 
> > > > >   <doc>
> > > > >   
> > > > >     <str name="type">Mammal</str>
> > > > >     <str name="id">1</str>
> > > > >     <str name="genus">Canis</str>
> > > > >   
> > > > >   </doc>
> > > > > 
> > > > > </response>
> > > > > 
> > > > > (plus some other docs but one is enough for this example)
> > > > > 
> > > > > But if I go to
> > > > > http://localhost:8983/solr/select/?q=type%3A<
> > 
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > 
> > > > dent=on
> > > > 
> > > > > Mammal
> > > > > 
> > > > > I only get:
> > > > > 
> > > > > <result name="response" numFound="0" start="0">
> > > > > 
> > > > > But it seems that should return at least the result I have listed
> > > > > above. What am I doing incorrectly?
> > > > > 
> > > > > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > > > > q=dog is equivalent to q=text:dog (where the default search field
> > 
> > is
> > 
> > > > > > defined as text at the bottom of schema.xml).
> > > > > > 
> > > > > > If you want to specify a different field, well, you need to tell
> > > > > > it
> > > > > > 
> > > > > > :-)
> > > > > > 
> > > > > > Is that it?
> > > > > > 
> > > > > > Upayavira
> > > > > > 
> > > > > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > > > > 
> > > > > > <br...@journalexperts.com> wrote:
> > > > > > > Hi all,
> > > > > > > 
> > > > > > > I was able to get my installation of Solr indexed using
> > 
> > dataimport.
> > 
> > > > > > > However,
> > > > > > > I cannot seem to get search working. I can verify that the data
> > 
> > is
> > 
> > > > there
> > > > 
> > > > > > > by
> > 
> > > > > > > going to:
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > 
> > > > dent=on
> > > > 
> > > > > > > This gives me the response: <result name="response"
> > > > > > > numFound="234961" start="0">
> > > > > > > 
> > > > > > > But when I go to
> > 
> > http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&inde
> > 
> > > > nt=on
> > > > 
> > > > > > > I get the response: <result name="response" numFound="0"
> > 
> > start="0">
> > 
> > > > > > > I know that dog should return some results because it is the
> > 
> > first
> > 
> > > > result
> > > > 
> > > > > > > when I select all the records. So what am I doing incorrectly
> > 
> > that
> > 
> > > > would
> > > > 
> > > > > > > prevent me from seeing results?
> > > > > > 
> > > > > > ---
> > > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > > Making Sense of Open Source
> > > > 
> > > > ---
> > > > Enterprise Search Consultant at Sourcesense UK,
> > > > Making Sense of Open Source

Re: Indexed, but cannot search

Posted by Brian Lamb <br...@journalexperts.com>.
Oh if only it were that easy :-). I have reindexed since making that change
which is how I was able to get the regular search working. I have not
however been able to get the search across all fields to work.

On Tue, Mar 1, 2011 at 3:01 PM, Markus Jelsma <ma...@openindex.io>wrote:

> Traditionally, people forget to reindex ;)
>
> > Hi all,
> >
> > The problem was that my fields were defined as type="string" instead of
> > type="text". Once I corrected that, it seems to be fixed. The only part
> > that still is not working though is the search across all fields.
> >
> > For example:
> >
> > http://localhost:8983/solr/select/?q=type%3AMammal
> >
> > Now correctly returns the records matching mammal. But if I try to do a
> > global search across all fields:
> >
> > http://localhost:8983/solr/select/?q=Mammal
> > http://localhost:8983/solr/select/?q=text%3AMammal
> >
> > I get no results returned. Here is how the schema is set up:
> >
> > <field name="text" type="text" indexed="true" stored="false"
> > multiValued="true"/>
> > <defaultSearchField>text</defaultSearchField>
> > <copyField source="*" dest="text" />
> >
> > Thanks to everyone for your help so far. I think this is the last hurdle
> I
> > have to jump over.
> >
> > On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > Next question, do you have your "type" field set to index="true" in
> your
> > > schema?
> > >
> > > Upayavira
> > >
> > > On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> > >
> > > <br...@journalexperts.com> wrote:
> > > > Thank you for your reply but the searching is still not working out.
> > > > For example, when I go to:
> > > >
> > > > http://localhost:8983/solr/select/?q=*%3A*<
> > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > > dent=on
> > >
> > > > I get the following as a response:
> > > >
> > > > <result name="response" numFound="249943" start="0">
> > > >
> > > >   <doc>
> > > >
> > > >     <str name="type">Mammal</str>
> > > >     <str name="id">1</str>
> > > >     <str name="genus">Canis</str>
> > > >
> > > >   </doc>
> > > >
> > > > </response>
> > > >
> > > > (plus some other docs but one is enough for this example)
> > > >
> > > > But if I go to
> > > > http://localhost:8983/solr/select/?q=type%3A<
> > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > > dent=on
> > >
> > > > Mammal
> > > >
> > > > I only get:
> > > >
> > > > <result name="response" numFound="0" start="0">
> > > >
> > > > But it seems that should return at least the result I have listed
> > > > above. What am I doing incorrectly?
> > > >
> > > > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > > > q=dog is equivalent to q=text:dog (where the default search field
> is
> > > > > defined as text at the bottom of schema.xml).
> > > > >
> > > > > If you want to specify a different field, well, you need to tell it
> > > > > :-)
> > > > >
> > > > > Is that it?
> > > > >
> > > > > Upayavira
> > > > >
> > > > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > > >
> > > > > <br...@journalexperts.com> wrote:
> > > > > > Hi all,
> > > > > >
> > > > > > I was able to get my installation of Solr indexed using
> dataimport.
> > > > > > However,
> > > > > > I cannot seem to get search working. I can verify that the data
> is
> > >
> > > there
> > >
> > > > > > by
> > >
> > > > > > going to:
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > > dent=on
> > >
> > > > > > This gives me the response: <result name="response"
> > > > > > numFound="234961" start="0">
> > > > > >
> > > > > > But when I go to
> > >
> > >
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&inde
> > > nt=on
> > >
> > > > > > I get the response: <result name="response" numFound="0"
> start="0">
> > > > > >
> > > > > > I know that dog should return some results because it is the
> first
> > >
> > > result
> > >
> > > > > > when I select all the records. So what am I doing incorrectly
> that
> > >
> > > would
> > >
> > > > > > prevent me from seeing results?
> > > > >
> > > > > ---
> > > > > Enterprise Search Consultant at Sourcesense UK,
> > > > > Making Sense of Open Source
> > >
> > > ---
> > > Enterprise Search Consultant at Sourcesense UK,
> > > Making Sense of Open Source
>

Re: Indexed, but cannot search

Posted by Markus Jelsma <ma...@openindex.io>.
Traditionally, people forget to reindex ;)

> Hi all,
> 
> The problem was that my fields were defined as type="string" instead of
> type="text". Once I corrected that, it seems to be fixed. The only part
> that still is not working though is the search across all fields.
> 
> For example:
> 
> http://localhost:8983/solr/select/?q=type%3AMammal
> 
> Now correctly returns the records matching mammal. But if I try to do a
> global search across all fields:
> 
> http://localhost:8983/solr/select/?q=Mammal
> http://localhost:8983/solr/select/?q=text%3AMammal
> 
> I get no results returned. Here is how the schema is set up:
> 
> <field name="text" type="text" indexed="true" stored="false"
> multiValued="true"/>
> <defaultSearchField>text</defaultSearchField>
> <copyField source="*" dest="text" />
> 
> Thanks to everyone for your help so far. I think this is the last hurdle I
> have to jump over.
> 
> On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > Next question, do you have your "type" field set to index="true" in your
> > schema?
> > 
> > Upayavira
> > 
> > On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> > 
> > <br...@journalexperts.com> wrote:
> > > Thank you for your reply but the searching is still not working out.
> > > For example, when I go to:
> > > 
> > > http://localhost:8983/solr/select/?q=*%3A*<
> > 
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > dent=on
> > 
> > > I get the following as a response:
> > > 
> > > <result name="response" numFound="249943" start="0">
> > > 
> > >   <doc>
> > >   
> > >     <str name="type">Mammal</str>
> > >     <str name="id">1</str>
> > >     <str name="genus">Canis</str>
> > >   
> > >   </doc>
> > > 
> > > </response>
> > > 
> > > (plus some other docs but one is enough for this example)
> > > 
> > > But if I go to
> > > http://localhost:8983/solr/select/?q=type%3A<
> > 
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > dent=on
> > 
> > > Mammal
> > > 
> > > I only get:
> > > 
> > > <result name="response" numFound="0" start="0">
> > > 
> > > But it seems that should return at least the result I have listed
> > > above. What am I doing incorrectly?
> > > 
> > > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:
> > > > q=dog is equivalent to q=text:dog (where the default search field is
> > > > defined as text at the bottom of schema.xml).
> > > > 
> > > > If you want to specify a different field, well, you need to tell it
> > > > :-)
> > > > 
> > > > Is that it?
> > > > 
> > > > Upayavira
> > > > 
> > > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > > 
> > > > <br...@journalexperts.com> wrote:
> > > > > Hi all,
> > > > > 
> > > > > I was able to get my installation of Solr indexed using dataimport.
> > > > > However,
> > > > > I cannot seem to get search working. I can verify that the data is
> > 
> > there
> > 
> > > > > by
> > 
> > > > > going to:
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&in
> > dent=on
> > 
> > > > > This gives me the response: <result name="response"
> > > > > numFound="234961" start="0">
> > > > > 
> > > > > But when I go to
> > 
> > http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&inde
> > nt=on
> > 
> > > > > I get the response: <result name="response" numFound="0" start="0">
> > > > > 
> > > > > I know that dog should return some results because it is the first
> > 
> > result
> > 
> > > > > when I select all the records. So what am I doing incorrectly that
> > 
> > would
> > 
> > > > > prevent me from seeing results?
> > > > 
> > > > ---
> > > > Enterprise Search Consultant at Sourcesense UK,
> > > > Making Sense of Open Source
> > 
> > ---
> > Enterprise Search Consultant at Sourcesense UK,
> > Making Sense of Open Source

Re: Indexed, but cannot search

Posted by Brian Lamb <br...@journalexperts.com>.
Hi all,

The problem was that my fields were defined as type="string" instead of
type="text". Once I corrected that, it seems to be fixed. The only part that
still is not working though is the search across all fields.

For example:

http://localhost:8983/solr/select/?q=type%3AMammal

Now correctly returns the records matching mammal. But if I try to do a
global search across all fields:

http://localhost:8983/solr/select/?q=Mammal
http://localhost:8983/solr/select/?q=text%3AMammal

I get no results returned. Here is how the schema is set up:

<field name="text" type="text" indexed="true" stored="false"
multiValued="true"/>
<defaultSearchField>text</defaultSearchField>
<copyField source="*" dest="text" />

Thanks to everyone for your help so far. I think this is the last hurdle I
have to jump over.

On Tue, Mar 1, 2011 at 12:34 PM, Upayavira <uv...@odoko.co.uk> wrote:

> Next question, do you have your "type" field set to index="true" in your
> schema?
>
> Upayavira
>
> On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
> <br...@journalexperts.com> wrote:
> > Thank you for your reply but the searching is still not working out. For
> > example, when I go to:
> >
> > http://localhost:8983/solr/select/?q=*%3A*<
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> >
> >
> > I get the following as a response:
> >
> > <result name="response" numFound="249943" start="0">
> >   <doc>
> >     <str name="type">Mammal</str>
> >     <str name="id">1</str>
> >     <str name="genus">Canis</str>
> >   </doc>
> > </response>
> >
> > (plus some other docs but one is enough for this example)
> >
> > But if I go to
> > http://localhost:8983/solr/select/?q=type%3A<
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> >
> > Mammal
> >
> > I only get:
> >
> > <result name="response" numFound="0" start="0">
> >
> > But it seems that should return at least the result I have listed above.
> > What am I doing incorrectly?
> >
> > On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:
> >
> > > q=dog is equivalent to q=text:dog (where the default search field is
> > > defined as text at the bottom of schema.xml).
> > >
> > > If you want to specify a different field, well, you need to tell it :-)
> > >
> > > Is that it?
> > >
> > > Upayavira
> > >
> > > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > > <br...@journalexperts.com> wrote:
> > > > Hi all,
> > > >
> > > > I was able to get my installation of Solr indexed using dataimport.
> > > > However,
> > > > I cannot seem to get search working. I can verify that the data is
> there
> > > > by
> > > > going to:
> > > >
> > > >
> > >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> > > >
> > > > This gives me the response: <result name="response" numFound="234961"
> > > > start="0">
> > > >
> > > > But when I go to
> > > >
> > > >
> > >
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&indent=on
> > > >
> > > > I get the response: <result name="response" numFound="0" start="0">
> > > >
> > > > I know that dog should return some results because it is the first
> result
> > > > when I select all the records. So what am I doing incorrectly that
> would
> > > > prevent me from seeing results?
> > > >
> > > ---
> > > Enterprise Search Consultant at Sourcesense UK,
> > > Making Sense of Open Source
> > >
> > >
> >
> ---
> Enterprise Search Consultant at Sourcesense UK,
> Making Sense of Open Source
>
>

Re: Indexed, but cannot search

Posted by Upayavira <uv...@odoko.co.uk>.
Next question, do you have your "type" field set to index="true" in your
schema?

Upayavira

On Tue, 01 Mar 2011 11:06 -0500, "Brian Lamb"
<br...@journalexperts.com> wrote:
> Thank you for your reply but the searching is still not working out. For
> example, when I go to:
> 
> http://localhost:8983/solr/select/?q=*%3A*<http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on>
> 
> I get the following as a response:
> 
> <result name="response" numFound="249943" start="0">
>   <doc>
>     <str name="type">Mammal</str>
>     <str name="id">1</str>
>     <str name="genus">Canis</str>
>   </doc>
> </response>
> 
> (plus some other docs but one is enough for this example)
> 
> But if I go to
> http://localhost:8983/solr/select/?q=type%3A<http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on>
> Mammal
> 
> I only get:
> 
> <result name="response" numFound="0" start="0">
> 
> But it seems that should return at least the result I have listed above.
> What am I doing incorrectly?
> 
> On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:
> 
> > q=dog is equivalent to q=text:dog (where the default search field is
> > defined as text at the bottom of schema.xml).
> >
> > If you want to specify a different field, well, you need to tell it :-)
> >
> > Is that it?
> >
> > Upayavira
> >
> > On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> > <br...@journalexperts.com> wrote:
> > > Hi all,
> > >
> > > I was able to get my installation of Solr indexed using dataimport.
> > > However,
> > > I cannot seem to get search working. I can verify that the data is there
> > > by
> > > going to:
> > >
> > >
> > http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> > >
> > > This gives me the response: <result name="response" numFound="234961"
> > > start="0">
> > >
> > > But when I go to
> > >
> > >
> > http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&indent=on
> > >
> > > I get the response: <result name="response" numFound="0" start="0">
> > >
> > > I know that dog should return some results because it is the first result
> > > when I select all the records. So what am I doing incorrectly that would
> > > prevent me from seeing results?
> > >
> > ---
> > Enterprise Search Consultant at Sourcesense UK,
> > Making Sense of Open Source
> >
> >
> 
--- 
Enterprise Search Consultant at Sourcesense UK, 
Making Sense of Open Source


Re: Indexed, but cannot search

Posted by Brian Lamb <br...@journalexperts.com>.
Thank you for your reply but the searching is still not working out. For
example, when I go to:

http://localhost:8983/solr/select/?q=*%3A*<http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on>

I get the following as a response:

<result name="response" numFound="249943" start="0">
  <doc>
    <str name="type">Mammal</str>
    <str name="id">1</str>
    <str name="genus">Canis</str>
  </doc>
</response>

(plus some other docs but one is enough for this example)

But if I go to http://localhost:8983/solr/select/?q=type%3A<http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on>
Mammal

I only get:

<result name="response" numFound="0" start="0">

But it seems that should return at least the result I have listed above.
What am I doing incorrectly?

On Mon, Feb 28, 2011 at 6:57 PM, Upayavira <uv...@odoko.co.uk> wrote:

> q=dog is equivalent to q=text:dog (where the default search field is
> defined as text at the bottom of schema.xml).
>
> If you want to specify a different field, well, you need to tell it :-)
>
> Is that it?
>
> Upayavira
>
> On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
> <br...@journalexperts.com> wrote:
> > Hi all,
> >
> > I was able to get my installation of Solr indexed using dataimport.
> > However,
> > I cannot seem to get search working. I can verify that the data is there
> > by
> > going to:
> >
> >
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> >
> > This gives me the response: <result name="response" numFound="234961"
> > start="0">
> >
> > But when I go to
> >
> >
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&indent=on
> >
> > I get the response: <result name="response" numFound="0" start="0">
> >
> > I know that dog should return some results because it is the first result
> > when I select all the records. So what am I doing incorrectly that would
> > prevent me from seeing results?
> >
> ---
> Enterprise Search Consultant at Sourcesense UK,
> Making Sense of Open Source
>
>

Re: Indexed, but cannot search

Posted by Upayavira <uv...@odoko.co.uk>.
q=dog is equivalent to q=text:dog (where the default search field is
defined as text at the bottom of schema.xml).

If you want to specify a different field, well, you need to tell it :-)

Is that it?

Upayavira

On Mon, 28 Feb 2011 15:38 -0500, "Brian Lamb"
<br...@journalexperts.com> wrote:
> Hi all,
> 
> I was able to get my installation of Solr indexed using dataimport.
> However,
> I cannot seem to get search working. I can verify that the data is there
> by
> going to:
> 
> http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
> 
> This gives me the response: <result name="response" numFound="234961"
> start="0">
> 
> But when I go to
> 
> http://localhost:8983/solr/select/?q=dog&version=2.2&start=0&rows=10&indent=on
> 
> I get the response: <result name="response" numFound="0" start="0">
> 
> I know that dog should return some results because it is the first result
> when I select all the records. So what am I doing incorrectly that would
> prevent me from seeing results?
> 
--- 
Enterprise Search Consultant at Sourcesense UK, 
Making Sense of Open Source