Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

SOLR + SIREn hints

Posted on December 3, 2015 - December 3, 2015 by margusja

To index field as date.

Document:

{
 "title": "Alice in Wonderland",
 "year": "1865",
 "date": "1865-01-01T00:00:00Z,
 "content": "Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do."
}

date field indexed as text.

{
 "title": "Alice in Wonderland",
 "year": "1865",
 "date": {"_datatype_":"http://www.w3.org/2001/XMLSchema#date", "_value_": "1865-01-01T00:00:00Z"},
 "content": "Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do."
}

date field indexed as date and you can query like:
{
    "node" : {
       "attribute": "date",
        "query" : "xsd:date([NOW-10YEARS TO NOW])"
    }
}
JOIN 

fl=xxx,yyy & {!join from=id to=patient.reference}name.family:JUKS
IN SQL
SELECT xxx, yyy
FROM collection1
WHERE patient.reference IN (SELECT id FROM collection1 where name.family = "JUKS")
Posted in IT

Post navigation

The CAP theorem
Üks miljonist

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.