response when using my own QParserPlugin

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

response when using my own QParserPlugin

Tri Nguyen
Hi,

I wrote a QParserPlugin.  When I hit solr and use this QParserPlugin, the
response does not have the column names associated with the data such as:

0 29 0 {!tnav} faketn1 CA city san francisco US 10 -9999 -9999 495,496,497
500,657,498,499 us:ca:san francisco faketn,fakeregression 037.74 -122.49 faketn1
faketn1 faketn1 faketn1 faketn1 999000002837
+3774-12250|+3774-12250@1|+3772-12252@2 94116:us 495,496,497
fakecs,fakeatti,fakevenable 500,657,498,499 San Francisco 667 US 37.742369
-122.491240 <bold>Main Dishes</bold> <bold>Pancakes</bold> faketn1 2.99 Enjoy
best chinese food. faketn1 1;0:0:0:0:8:20% off.0:0:0:3:0.0 4158281775 94116
ACTION_MODEL TN CA 2350 Taraval St Enjoy best chinese food 40233 -9999
5;10:ACTION_MAP0:3:0.315:ACTION_DRIVE_TO0:3:0.517:ACTION_IMPRESSION0:6:0.005014:ACTION_PROFILE0:3:0.111:ACTION_CALL0:3:0.3
 20000027 -9999



How do I get the data to be associated with the index columns so I can parse it
and know the context of the data (such as this data is the business name, this
data is the address, etc).

---


i was hoping it return something like this or some sort of structure.

<?xml version="1.0" encoding="UTF-8" ?>
- <response>
- <lstname="responseHeader">
  <intname="status">0</int>
  <intname="QTime">1</int>
- <lstname="params">
  <strname="indent">on</str>
  <strname="start">0</str>
  <strname="q">I_NAME_EXACT:faketn1</str>
  <strname="rows">10</str>
  <strname="version">2.2</str>
  </lst>
  </lst>
- <resultname="response"numFound="1"start="0">
- <doc>
- <arrname="I_BASE_ID">
  <str>-9999</str>
  <str>-9999</str>
  </arr>
  <strname="I_BLOCK_CATEGORY_ID">495,496,497</str>
  <strname="I_CATEGORY_ID">500,657,498,499</str>
  <strname="I_CITY_DISTRICT">us:ca:san francisco</str>
  <strname="I_KEYWORD">faketn,fakeregression</str>
  <strname="I_LAT_RANGE">037.74</str>
  <strname="I_LON_RANGE">-122.49</str>
  <strname="I_NAME_AS_KEYWORD">faketn1</str>
  <strname="I_NAME_ENUM">faketn1</str>
  <strname="I_NAME_EXACT">faketn1</str>
  <strname="I_NAME_NGRAM">faketn1</str>
  <strname="I_NAME_PACK">faketn1</str>
  <strname="I_POI_ID">999000002837</str>
  <strname="I_SPATIAL_BLOCK">+3774-12250|+3774-12250@1|+3772-12252@2</str>
  <strname="I_ZIP_DISTRICT">94116:us</str>
  <strname="S_BLOCK_CATEGORY_ID">495,496,497</str>
  <strname="S_BLOCK_KEYWORDS">fakecs,fakeatti,fakevenable</str>
  <strname="S_CATEGORY_ID">500,657,498,499</str>
  <strname="S_CITY">San Francisco</str>
  <strname="S_COMPAIGN_ID">667</str>
  <strname="S_COUNTRY">US</str>
  <str name="S_FAX"/>
  <strname="S_LATITUDE">37.742369</str>
  <strname="S_LONGTITUDE">-122.491240</str>
  <strname="S_MENU"><bold>Main Dishes</bold> <bold>Pancakes</bold> faketn1
2.99</str>

  <strname="S_MERCHANT_CONTENT">Enjoy best chinese food.</str>
  <strname="S_NAME">faketn1</str>
  <strname="S_OFFERS">1;0:0:0:0:8:20% off.0:0:0:3:0.0</str>
  <strname="S_PHONE_NUMBER">4158281775</str>
  <strname="S_POSTALCODE">94116</str>
  <strname="S_PRICEMODE">ACTION_MODEL</str>
  <strname="S_SOURCE_NAME">TN</str>
  <str name="S_SPONSOREDTEXT"/>
  <strname="S_STATE">CA</str>
  <strname="S_STREET">2350 Taraval St</str>
  <str name="S_STREET2"/>
  <str name="S_SUIT"/>
  <strname="S_TAGLINE">Enjoy best chinese food</str>
  <strname="S_TARGET_DISTANCE_IN_METER">40233</str>
  <strname="S_TA_ID">-9999</str>
 
<strname="S_USER_ACTIONS">5;10:ACTION_MAP0:3:0.315:ACTION_DRIVE_TO0:3:0.517:ACTION_IMPRESSION0:6:0.005014:ACTION_PROFILE0:3:0.111:ACTION_CALL0:3:0.3</str>
 
  <strname="S_VENDOR_ID">20000027</str>
  <str name="S_WEBURL"/>
  <strname="S_YPC_ID">-9999</str>
  </doc>
  </result>
  </response>
 
Tri
Reply | Threaded
Open this post in threaded view
|

Re: response when using my own QParserPlugin

Grijesh
Are looking your output in any Browser?
Which browser you are using?
If chrome then look for view source it will give your desired xml output or change any other browser to see xml output
Thanx:
Grijesh
www.gettinhahead.co.in