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 rajannat <ra...@gmail.com> on 2011/10/01 22:35:24 UTC

Search does not give results.

Hi,
I created the index and query for the terms using TermsComponent. I get the
following results:
Query Results:
{responseHeader={status=0,QTime=31},terms={technology_used={tool=3,web=3,0=2,2=2,7=2,70=2,adob=2,ee=2,form=2,j=2}}}
But when searching using terms, I do not get an results of search.

I tried searching from:
- admin console 
- http://localhost:8080/solr/select?q=tool.

The solrconfig.cml and schema.xml are attached.
Any ideas, what might be missed?
Thanks!
Regards,
Kumar


http://lucene.472066.n3.nabble.com/file/n3385783/schema.xml schema.xml 
http://lucene.472066.n3.nabble.com/file/n3385783/solrconfig.xml
solrconfig.xml 

--
View this message in context: http://lucene.472066.n3.nabble.com/Search-does-not-give-results-tp3385783p3385783.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search does not give results.

Posted by Gora Mohanty <go...@mimirtech.com>.
On Mon, Oct 3, 2011 at 8:40 AM, rajannat <ra...@gmail.com> wrote:
> Hello Mr Mohanty,
> Thanks for your inputs.
> Based on what you said, I tried out a few stuff and I think following change
> fixed the issue:
> Modified the schema.xml to change
> <defaultSearchField>all</defaultSearchField>
> to
> <defaultSearchField>technology_used</defaultSearchField>
[...]

That will work if technlogy_used is the only field that you
want to search in. If you would also like to search on other
fields, please try out the suggestions in my earlier email.

Regards,
Gora

Re: Search does not give results.

Posted by rajannat <ra...@gmail.com>.
Hello Mr Mohanty,
Thanks for your inputs.
Based on what you said, I tried out a few stuff and I think following change
fixed the issue:
Modified the schema.xml to change
<defaultSearchField>all</defaultSearchField>
to
<defaultSearchField>technology_used</defaultSearchField>
Thanks again.
Regards,
Kumar



On Sun, Oct 2, 2011 at 2:45 AM, Gora Mohanty-3 [via Lucene] <
ml-node+s472066n3386847h34@n3.nabble.com> wrote:

> On Sun, Oct 2, 2011 at 2:05 AM, rajannat <[hidden email]<http://user/SendEmail.jtp?type=node&node=3386847&i=0>>
> wrote:
>
> > Hi,
> > I created the index and query for the terms using TermsComponent. I get
> the
> > following results:
> > Query Results:
> >
> {responseHeader={status=0,QTime=31},terms={technology_used={tool=3,web=3,0=2,2=2,7=2,70=2,adob=2,ee=2,form=2,j=2}}}
>
> > But when searching using terms, I do not get an results of search.
> >
> > I tried searching from:
> > - admin console
> > - http://localhost:8080/solr/select?q=tool.
> >
> > The solrconfig.cml and schema.xml are attached.
> > Any ideas, what might be missed?
> [...]
>
> The syntax that you have used for defaultSearchField is not
> supported. Instead, you should set defaultSearchField to the
> full-text search field named text, and use copyField directives
> to copy all fields to be searched to "text", e.g.,
>   <copyField source="technology_used" dest="text" />
> and so on for other fields.
>
> Alternatively, you can explicity specify the field to be
> searched with q=technology_used:toil
>
> Regards,
> Gora
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/Search-does-not-give-results-tp3385783p3386847.html
> To unsubscribe from Search does not give results., click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3385783&code=cmFqYW5uYXRAZ21haWwuY29tfDMzODU3ODN8MTk3NzY1OTM4>.
>
>


--
View this message in context: http://lucene.472066.n3.nabble.com/Search-does-not-give-results-tp3385783p3388709.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Search does not give results.

Posted by Gora Mohanty <go...@mimirtech.com>.
On Sun, Oct 2, 2011 at 2:05 AM, rajannat <ra...@gmail.com> wrote:
> Hi,
> I created the index and query for the terms using TermsComponent. I get the
> following results:
> Query Results:
> {responseHeader={status=0,QTime=31},terms={technology_used={tool=3,web=3,0=2,2=2,7=2,70=2,adob=2,ee=2,form=2,j=2}}}
> But when searching using terms, I do not get an results of search.
>
> I tried searching from:
> - admin console
> - http://localhost:8080/solr/select?q=tool.
>
> The solrconfig.cml and schema.xml are attached.
> Any ideas, what might be missed?
[...]

The syntax that you have used for defaultSearchField is not
supported. Instead, you should set defaultSearchField to the
full-text search field named text, and use copyField directives
to copy all fields to be searched to "text", e.g.,
  <copyField source="technology_used" dest="text" />
and so on for other fields.

Alternatively, you can explicity specify the field to be
searched with q=technology_used:toil

Regards,
Gora