Multi-Index Operations
The following action allow multiple indices to be used as the target:
| Resource | Method | Notes |
| OpenSearch Description | GET | |
| Index | GET (with ?query) | Multi-index searching |
| Index | DELETE |
To specify multiple indicies, simply comma-delimit them in the url.
Request
GET /lucene/test1,test2/?query=test HTTP/1.1 Host: localhost:8080
Response
HTTP/1.x 200 OK Content-Type: application/atom+xml;charset=utf-8 <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <opensearch:totalResults>2</opensearch:totalResults> <opensearch:startIndex>1</opensearch:startIndex> <opensearch:itemsPerPage>10</opensearch:itemsPerPage> <opensearch:link href="http://localhost:8080/lucene/test1,test2/opensearchdescription.xml" rel="search" type="application/opensearchdescription+xml"/> <opensearch:Query rel="request" searchTerms="test"/> <title>Search results for query 'test' on indices 'Test Index 1' and 'Test Index 2'</title> <link href="http://localhost:8080/lucene/test1,test2/?query=test&page=1" rel="self" type="application/atom+xml"/> <link href="http://localhost:8080/lucene/test1,test2/?query=test&page=1" rel="first" type="application/atom+xml"/> <link href="http://localhost:8080/lucene/test1,test2/?query=test&page=1" rel="last" type="application/atom+xml"/> <updated>2006-02-28T11:40:16-04:00</updated> <author> <name>Lucene Web Service</name> </author> <id>http://localhost:8080/lucene/tes1t,test2/?query=test</id> <entry> <title>Test Document 2</title> <link href="http://localhost:8080/lucene/test2/1/" rel="alternate"/> <updated>2006-01-26T16:35:47-04:00</updated> <id>http://localhost:8080/lucene/test2/1/</id> <summary>Test Document 2</summary> <opensearch:relevance>0.2982685</opensearch:relevance> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <dl class="xoxo"> <dt class="stored indexed">id</dt> <dd>1</dd> <dt class="stored indexed tokenized">text</dt> <dd>Test Document 2</dd> <dt class="stored indexed">updated</dt> <dd>1138307747915</dd> </dl> </div> </content> </entry> <entry> <title>Test Document 1</title> <link href="http://localhost:8080/lucene/test1/1/" rel="alternate"/> <updated>2006-02-28T10:17:10-04:00</updated> <id>http://localhost:8080/lucene/test1/1/</id> <opensearch:relevance>0.11690155</opensearch:relevance> <content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <dl class="xoxo"> <dt class="stored indexed">id</dt> <dd>1</dd> <dt class="stored indexed tokenized">text</dt> <dd>Test Document 1</dd> <dt class="stored indexed">updated</dt> <dd>1141136230411</dd> </dl> </div> </content> </entry> </feed>
