serhiy-bzhezytskyy opened a new pull request, #33:
URL: https://github.com/apache/solr-orbit-workloads/pull/33

   Adds the `expression` operation of the geonames workload: all documents 
ordered by `abs(ln(abs(population) + 1) + lon + lat)`, a Lucene expression 
evaluated for every document, as `{!func}geo_expression(population,lon,lat)`.
   
   The function is registered in `configsets/geonames/solrconfig.xml` with 
`solr.ExpressionValueSourceParser`. It needs `lat` and `lon` as numbers, so the 
schema gets two doc-values fields and an update processor chain fills them from 
`location` at indexing time; the corpus does not change. Because they are part 
of the collection's configuration, the two fields and the chain apply to every 
operation of the workload. A Solr node that already holds a config set named 
`geonames` keeps using it, so a run on such a node does not see these changes; 
a fresh node does.
   
   Compared with OpenSearch on the 1,000,436-document sample: the scores of 200 
random documents agree to a relative 1e-7, and the operation returns the same 
1,000,436 documents. A `--test-mode` run on a fresh Solr 10.1.0 node: no 
errors, and all documents have `lat` and `lon`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to