lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From melkink <melk...@gmail.com>
Subject New user question: How to show all stored fields in a result
Date Fri, 07 Sep 2007 22:01:06 GMT

Hello Solr Folks,

I'm a new solr user and I'm running into a frustrating problem.  I'm sure
it's a simple solution I just don't have the experience with solr to know
the correct way around it.

I currently have approximately 600 documents stored and indexed in solr. 
Each document has some level of associated metadata. I can query the solr
index with no problems but I can't seem to get a full set 	of metadata with
my search results.  For example, if I search on the text of the stored
document all that is sent back is the score and the id of the hit.

Query:  

http://localhost:8983/solr/select?indent=on&version=2.2&q=doctext%3Ashakespeare&start=0&rows=10&fl=*&qt=standard&wt=standard&explainOther=&hl.fl=

Partial Result:

<response>
	<lst name="responseHeader">
		<int name="status">0</int>
		<int name="QTime">1</int>
		<lst name="params">
			<str name="explainOther"/>
			<str name="fl">*</str>
			<str name="indent">on</str>
			<str name="start">0</str>
			<str name="q">doctext:shakespeare</str>
			<str name="hl.fl"/>
			<str name="qt">standard</str>
			<str name="wt">standard</str>
			<str name="version">2.2</str>
			<str name="rows">10</str>
		</lst>
	</lst>
	<result name="response" numFound="470" start="0">
		<doc>
			<str name="id">2eb453aab5101de037ba0747139ebd27</str>
		</doc>
		...
	</result>
</response>

However, If I search the authors_primary field I get the full metadata
listing:

Query:

http://localhost:8983/solr/select?indent=on&version=2.2&q=authors_primary%3A%22Russ%2CJon+R.%22&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=

Result:

<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
 <int name="status">0</int>
 <int name="QTime">0</int>
 <lst name="params">
  <str name="explainOther"/>
  <str name="fl">*,score</str>
  <str name="indent">on</str>
  <str name="start">0</str>
  <str name="q">authors_primary:"Russ,Jon R."</str>
  <str name="hl.fl"/>
  <str name="qt">standard</str>
  <str name="wt">standard</str>
  <str name="version">2.2</str>
  <str name="rows">10</str>
 </lst>
</lst>
<result name="response" numFound="1" start="0" maxScore="6.4764633">
 <doc>
  <float name="score">6.4764633</float>
  <str name="abstract">[Asserts that the "brass" of line 3 of Sonnet 1 is a
metonym for cannon.]</str>
  <str name="accession_number"> </str>
  <str name="author_address"> </str>
  <str name="authors_primary">Russ,Jon R.</str>
  <str name="authors_quaternary">Anonymous </str>
  <str name="authors_quinary">Anonymous </str>
  <str name="authors_secondary">Anonymous</str>
  <str name="authors_tertiary">Anonymous</str>
  <str name="availability"> </str>
  <str name="call_number"> </str>
  <str name="classification"> </str>
  <str name="data_source"> </str>
  <str name="database"> </str>
  <str name="doi"> </str>
  <str name="edition"> </str>
  <str name="id">2eb453aab5101de037ba0747139ebd27</str>
  <str name="identifying_phrase"> </str>
  <str name="issn_isbn">0014-4940</str>
  <str name="issue"> </str>
  <str name="keywords">English literature;1500-1599;Shakespeare,
William;Sonnets</str>
  <str name="language"> </str>
  <str
name="links">http://search.epnet.com/login.aspx?direct=true&amp;db=mzh&amp;an=1972103657</str>
  <str name="notes">Accession Number: 1972103657. Peer Reviewed: Yes.
Publication Type: journal article. Language: English. Update Code: 197201.
Sequence No: 1972-1-3657. INDIVIDUAL WORKS - PLAYS; The Sonnets; Scholarship
and Criticism; Textual and Bibliographical Studies; metonymy</str>
  <str name="original_foreign_title"> </str>
  <str name="other_pages"> </str>
  <str name="periodical_abbrev"> </str>
  <str name="periodical_full">Explicator</str>
  <str name="place_of_publication">Washington, DC</str>
  <str name="pub_date_free_from"> </str>
  <str name="pub_year">1972</str>
  <str name="publisher"> </str>
  <str name="reference_type">Journal</str>
  <str name="retrieved_date"> </str>
  <str name="shortened_title"> </str>
  <str name="start_page">Item 38</str>
  <str name="subfile_database"> </str>
  <str name="title_primary">Shakespeare's Sonnet LXIV</str>
  <str name="title_secondary"> </str>
  <str name="title_tertiary"> </str>
  <str name="user_1"> </str>
  <str name="user_2"> </str>
  <str name="user_3"> </str>
  <str name="user_4"> </str>
  <str name="user_5"> </str>
  <str name="volume">30</str>
 </doc>
</result>
</response>

How do I get the full metadata listing when I do a query on the doctext
field.  I've attached my schema.xml file in case that can help someone
answser my question.

Thank you in advance!

Mike

http://www.nabble.com/file/p12531829/schema.xml schema.xml 

-- 
View this message in context: http://www.nabble.com/New-user-question%3A-How-to-show-all-stored-fields-in-a-result-tf4394773.html#a12531829
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message