Changeset 8924


Ignore:
Timestamp:
2005-01-21T15:10:58+13:00 (19 years ago)
Author:
kjdon
Message:

with a search we now return a metadata item with the actual query string used in the search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS3MGSearch.java

    r8439 r8924  
    134134    // because teh total number is just the number returned, use numDocsReturned, not numDocsMatched
    135135    GSXML.addMetadata(this.doc, metadata_list, "numDocsReturned", ""+totalDocs);
     136
     137    // add a metadata item to specify what actual query was done - eg if stuff was stripped out etc. and then we can use the query later, cos we don't know which parameter was the query
     138    GSXML.addMetadata(this.doc, metadata_list, "query", query);
     139   
    136140    // Create a document list to store the matching documents, and add them
    137141    Element document_list = this.doc.createElement(GSXML.DOC_NODE_ELEM+GSXML.LIST_MODIFIER);
Note: See TracChangeset for help on using the changeset viewer.