lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <a.benede...@sease.io>
Subject Re: How to create a solr collection providing as much searching flexibility as possible?
Date Mon, 30 Apr 2018 11:20:23 GMT
Hi Raymond,
as Charlie correctly stated, the input format is not that important, what is
important is to focus on your requirements and properly design a
configuration and data model to solve them.

Extracting the information for such a data format is not going to be
particularly challenging ( as i assume you know the semantic of such
structure).
You need to properly build your Solr document accordingly to the set of
features you want to expose.
Designing fields and field types will be fundamental to reach the search
flexibility you are looking for.

e.g.
*Feature*: expose a fast range search on a numerical field (Int)
*Implementation* : 
<Index time>[1] 
IntPointField
Integer field (32-bit signed integer). This class encodes int values using a
"Dimensional Points" based data structure that allows for very efficient
searches for specific values, or ranges of values. For single valued fields,
docValues="true" must be used to enable sorting.
<Query time>[2]

Regards

[1]
https://lucene.apache.org/solr/guide/7_3/field-types-included-with-solr.html
[2]
https://lucene.apache.org/solr/guide/7_3/the-standard-query-parser.html#range-searches



-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Mime
View raw message