Hi Vipul, Which query do you submit? Is that one:
q=appname:App1 Kind Regards, Furkan KAMACI On Mon, Jul 22, 2019 at 10:52 AM Vipul Bahuguna < newthings4learn...@gmail.com> wrote: > Hi, > > I have installed SOLR 8.1.1. > I am new and trying the very basics. > > I installed solr8.1.1 on Windows and I am using SOLR in standalone mode. > > Steps I followed - > > 1. created a core as follows: > solr create_core -c dox > > 2. updated the managed_schema.xml file to add few specific fields specific > to my schema as belows: > > <field name="prjname" type="text_general" indexed="true" stored="true"/> > <field name="appname" type="text_general" indexed="true" stored="true"/> > <field name="topicname" type="text_general" indexed="true" stored="true"/> > <field name="links" type="string" multiValued="true" indexed="true" > stored="true"/> > > 3. then i restarted SOLR > > 4. then i went to the Documents tab to enter my sample data for indexing, > which looks like below: > { > > "id" : "1", > "prjname" : "Project1", > "apps" : [ > { > "appname" : "App1", > "topics" : [ > { > "topicname" : "topic1", > "links" : [ > "http://www.google.com", > "http://www.t6.com" > ] > }, > { > "topicname" : "topic2", > "links" : [ > "http://www.java.com", > "http://www.rediff.com" > ] > } > ] > }, > { > "appname" : "App2", > "topics" : [ > { > "topicname" : "topic3", > "links" : [ > "http://www.t3.com", > "http://www.t4.com" > ] > }, > { > "topicname" : "topic4", > "links" : [ > "http://www.rules.com", > "http://www.amazon.com" > ] > } > ] > } > ] > } > > 5. Now when i go to Query tab and click Execute Search with *.*, it shows > my recently added document as follows: > { > "responseHeader":{ "status":0, "QTime":0, "params":{ "q":"*:*", "_": > "1563780352100"}}, "response":{"numFound":1,"start":0,"docs":[ { "id":"1", > " > prjname":["Project1"], "apps":["{appname=App1, topics=[{topicname=topic1, > links=[http://www.google.com, http://www.t6.com]}, {topicname=topic2, > links=[http://www.java.com, http://www.rediff.com]}]}", "{appname=App2, > topics=[{topicname=topic3, links=[http://www.t3.com, http://www.t4.com]}, > {topicname=topic4, links=[http://www.rules.com, http://www.amazon.com > ]}]}"], > "_version_":1639742305772503040}] }} > > 6. But now when I am trying to search based on field topicname or prjname, > it does not returns any document. Even if put anything in q like App1, zero > results are being returned. > > > Can someone help me understanding what I might have done incorrectly? > May be I defined my schema incorrectly. > > Thanks in advance >