Hi Team,

 

               I am Vignesh and working in Apache Solr 3.6 for my project.
Kindly provide me a solution for the post which I have given below.

 

Example 1:

 

         Keyword :gardens and the output in JSON format.

 

{

  "responseHeader":{

    "status":0,

    "QTime":0,

    "params":{

      "fl":"id",

      "indent":"on",

      "start":"0",

      "q":"gardens",

      "wt":"json",

      "rows":"10",

      "version":"2.2"}},

  "response":{"numFound":5,"start":0,"docs":[

      {

 
"id":"20140205_Anfield_and_Walton_Star_Reg-null_Sup-null_Ed-01_031"},

      {

        "id":"20140205_Stroud_Life_Reg-null_Sup-supplement2_Ed-01_018"},

      {

        "id":"20140206_Suffolk_Free_Press_Reg-null_Sup-null_Ed-01_044"},

      {

        "id":"20140205_Luton_News_Reg-null_Sup-null_Ed-01_052"},

     

      {

        "id":"20140206_Herald_Express_Reg-null_Sup-null_Ed-01_025"}]

  }}

 

 

Example 2:

 

         Keyword : gardens+AND+Reception+AND+Lounge+AND+Front  and the
output in JSON format.

 

{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "fl":"id",
      "indent":"on",
      "start":"0",
      "q":"gardens OR Reception OR Lounge OR Front",
      "wt":"json",
      "rows":"10",
      "version":"2.2"}},
  "response":{"numFound":5,"start":0,"docs":[
      {
 
"id":"20140205_East_Grinstead_Courier_Reg-null_Sup-property_Ed-01_017"},
      {
 
"id":"20140205_Anfield_and_Walton_Star_Reg-null_Sup-null_Ed-01_031"},
      {
 
"id":"20140206_Lytham_St_Annes_Express_Reg-null_Sup-null_Ed-01_046"},
      {
        "id":"20140206_Derbyshire_Times_Reg-null_Sup-supplement_Ed-01_009"},
      {
        "id":"20140206_Washington_Star_Reg-null_Sup-null_Ed-01_027"}]
  }}

 

In this Example 2 I want keyword list matching a file.

 

Note : In this 5 files some files may contain gardens and some may contain
gardens, Front and Lounge. So kindly guide me to get the keyword list like
mentioned below.

 

id:20140205_East_Grinstead_Courier_Reg-null_Sup-property_Ed-01_017

Keyword Matched :  gardens

 

id:20140206_Washington_Star_Reg-null_Sup-null_Ed-01_027

Keyword Matched :  gardens, Lounge.

 

 

 

Thanks & Regards.

Vignesh.V

 

cid:image001.jpg@01CA4872.39B33D40

Ninestars Information Technologies Limited.,

72, Greams Road, Thousand Lights, Chennai - 600 006. India.

Landline : +91 44 2829 4226 / 36 / 56   X: 144

 <blocked::http://www.ninestars.in/> www.ninestars.in 

 


--
STOP Virus, STOP SPAM, SAVE Bandwidth!
http://www.safentrix.com/adlink?cid=0
--

Reply via email to