Hi Alex,

I have been able to run a few simple queries with my own schema.xml and
data file. My concern now is that i'm able to run queries like

http://localhost:8983/solr/select/?q=*:*

http://localhost:8983/solr/select/?q=*:*&facet=true&facet.field=Name

from the url

However, when I try to run them like this

*:*&facet=true&facet.field=Name

from the query string text box it gives me error like undefined field *.

Any idea what is going wrong?

TIA




On Sun, Oct 27, 2013 at 1:28 PM, Mamta Alshi <mamta.al...@gmail.com> wrote:

> Hi Alex,
>
> That is what I am suspecting too. Trying to remove the other files from
> the exampledocs directory is not helping. After removing all files except
> the details.xml also the results still show me data from the other files
> but not my file.
>
> I am making changes to the same path which is displayed in Web Admin's
> dashboard.
>
> My last option will be to delete solr ,install it again and try.
>
> Thanks for your prompt response.
>
>
> On Sun, Oct 27, 2013 at 1:04 PM, Alexandre Rafalovitch <arafa...@gmail.com
> > wrote:
>
>> Maybe your Solr instance is somehow using a different collection
>> directory?
>>
>> In Web Admin's dashboard section, it shows the path to where it thinks the
>> instance is. Does it match to what you expected?
>>
>> If it does, try deleting the core directory, restarting Solr and doing
>> indexing again. Maybe you have some old stuff there accidentally.
>>
>> Regards,
>>    Alex
>>
>> Personal website: http://www.outerthoughts.com/
>> LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch
>> - Time is the quality of nature that keeps events from happening all at
>> once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)
>>
>>
>> On Sun, Oct 27, 2013 at 3:45 PM, Mamta Alshi <mamta.al...@gmail.com>
>> wrote:
>>
>> > Hi,
>> >
>> > On trying to create a new schema.xml it shows the schema from the solr
>> > console. I have created a new data file called details.xml and placed
>> it in
>> > the folder exampledocs. I have indexed just this one file from the
>> command
>> > prompt.
>> >
>> > However,on my solr console in my query string when I query *:* it does
>> not
>> > show me the contents from details.xml.
>> > It shows me contents of some other data file.
>> >
>> > Am I missing out on something?
>> >
>> > TIA .
>> >
>> >
>> > On Tue, Oct 1, 2013 at 3:16 PM, Kishan Parmar <kishan....@gmail.com>
>> > wrote:
>> >
>> > > yes you have to create your own schema
>> > > but in schema file you have to add your xml files field name in it
>> like
>> > > wise
>> > > you can add your field name in it ....
>> > >
>> > > or you can add  your filed in the default schema file
>> > >
>> > > whiithout schema you can not add your xml file to solr
>> > >
>> > > my schema is like this
>> > >
>> > >
>> >
>> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>> > > <?xml version="1.0" encoding="UTF-8" ?>
>> > > <schema name="example" version="1.5">
>> > > <fields>
>> > >  <field name="No" type="string" indexed="true" stored="true"
>> > > required="true" multiValued="false" />
>> > >  <field name="Name" type="string" indexed="true" stored="true"
>> > > required="true" multiValued="false" />
>> > >  <field name="Address" type="string" indexed="true" stored="true"
>> > > required="true" multiValued="false" />
>> > >  <field name="Mobile" type="string" indexed="true" stored="true"
>> > > required="true" multiValued="false" />
>> > > </fields>
>> > > <uniqueKey>No</uniqueKey>
>> > >
>> > > <types>
>> > >
>> > >   <fieldType name="string" class="solr.StrField"
>> sortMissingLast="true"
>> > />
>> > >   <fieldType name="int" class="solr.TrieIntField" precisionStep="0"
>> > > positionIncrementGap="0" />
>> > > </types>
>> > > </schema>
>> > >
>> > >
>> >
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>> > >
>> > > and my file is like this ,,.,.,.,.
>> > >
>> > >
>> > >
>> >
>> -------------------------------------------------------------------------------------------------------------------------------------------------------------
>> > > <add>
>> > >     <doc>
>> > >         <field name="No">100120107088</field>
>> > >         <field name="Name">kishan</field>
>> > >         <field name="Address">ghatlodia</field>
>> > >         <field name="Mobile">9510077394</field>
>> > >     </doc>
>> > > </add>
>> > >
>> > > Regards,
>> > >
>> > > Kishan Parmar
>> > > Software Developer
>> > > +91 95 100 77394
>> > > Jay Shree Krishnaa !!
>> > >
>> > >
>> > >
>> > > On Tue, Oct 1, 2013 at 1:11 AM, mamta <mamta.al...@gmail.com> wrote:
>> > >
>> > > > Hi,
>> > > >
>> > > > I want to know that if i have to fire some query through the Solr
>> > admin,
>> > > do
>> > > > i need to create a new schema.xml? Where do i place it incase iahve
>> to
>> > > > create a new one.
>> > > >
>> > > > Incase i can edit the original schema.xml can there be two fields
>> named
>> > > id
>> > > > in my schema.xml?
>> > > >
>> > > > I desperately need help in running queries on the Solr admin which
>> is
>> > > > configured on a Tomcat server.
>> > > >
>> > > > What all preparation will i need to do? Schema.xml any docs?
>> > > >
>> > > > Any help will be highly appreciated.
>> > > >
>> > > > Thanks,
>> > > > Mamta
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > View this message in context:
>> > > > http://lucene.472066.n3.nabble.com/Newbie-to-Solr-tp4092876.html
>> > > > Sent from the Solr - User mailing list archive at Nabble.com.
>> > > >
>> > >
>> >
>>
>
>

Reply via email to