Feature #196
Adding query mechanism and result
100%
Files
History
Updated by Patrick Talbot over 14 years ago
- % Done changed from 0 to 20
- Estimated time set to 20.00 h
First draft version of query mechanism: plugins.SmartDoc.query() accepts a JS Object with these parameters:
{
query: Lucene/Solr syntax query
queryType: @see Solr query types (default="standard")
start: int (default = 0)
rows: int (default = -1 / all)
highliting: boolean (default=false)
debug: boolean (default=false / Solr debug informations)
}
(MORE TO COME)
returns a JS Object with the following structure:
{
responseHeader: { status: int (0=OK), QTime: total query time (in ms), params: Object returning the parameters used in the query },
response: { numFound: int, start: int, maxscore: double (best score) docs: array of documents [ {id: 1}, {id: 2}, etc. ],
highlighting: { doc.id: { field1: hilitePortion, field2: hilitePortion } }
}
Updated by Patrick Talbot over 14 years ago
- File solrForm.png solrForm.png added
For v0.8, allow to build this kind of form in Servoy:
Updated by Patrick Talbot over 14 years ago
Implemented sample query form in Servoy, it looks like this:
Updated by Patrick Talbot over 14 years ago
- % Done changed from 50 to 90
Added extended query parameters and sample solution can now query the Solr index.
Redesign the query form
Can now hook SolrServer on the fly
Better handling of lists for fields, hiliteFields, facets and filters ([,;\s] delimited String or String[])