Hi!

I've encountered something surprising in solr on the stream handler.

When I use the expression:
select(
  search(s2, q="author:"Florian Lindemann"", fl="id, author, title", sort="id 
desc", qt=/select),
  indexOf(author, "Florian Lindemann") as idx,
  author,
  title
)

.. response (snippet)
.
. {
.   "author": [
.     "Stefan Diepenbrock",
.     "Jörg-Stefan Praßni",
.     "Florian Lindemann",
.     "Hans-Werner Bothe",
.     "Timo Ropinski"
.   ],
.   "title": "Interactive Visualization Techniques for Neurosurgery Planning",
.   "idx": 2
. },
.

changing the "qt=/export" will sort the author field alphabetically:

.. response (snippet)
.
. {
.   "author": [
.     "Florian Lindemann",
.     "Hans-Werner Bothe",
.     "Jörg-Stefan Praßni",
.     "Stefan Diepenbrock",
.     "Timo Ropinski"
.   ],
.   "title": "Interactive Visualization Techniques for Neurosurgery Planning",
.   "idx": 0
. },
.

which will screw the calculations I'd like to have done on 'idx'.

Is there something I'm missing or is this a regression?

regards,
-1

Reply via email to