Hi,
I would start from
https://cwiki.apache.org/confluence/display/solr/Understanding+Analyzers%2C+Tokenizers%2C+and+Filters
And this https://cwiki.apache.org/confluence/display/solr/Solr+Field+Types
And after that
https://cwiki.apache.org/confluence/display/solr/Query+Syntax+and+Parsing
Please read some inline hints.
On 05.05.2017 16:08, jnobre wrote:
Hello,
I am making an application that makes queries to solr. But I still can not
figure out what the querys syntax is.
I have a field that is a string. I want to do 3 operations.
1 - Search for a subtring, an exact expression in the string. Same as ""
google search operator.
Example: search "beautiful day" in field
Solr also support "" - it is translated to phrase query if your field is
text, or if string, it has to be exact match.
2 - Search in a field that represents one url per domain, given a domain
return all the url of that domain. Is it possible to use regex?
Example: search "google.com" in field
This is about setting proper analysis of some field containing URLs. It
depends on what do you want to match.
3-Search if two multiplied fields are within a range of values (floats)
Example: search if result of the multiplication between 1500 and 2000
You could use functions to get it, or at index time create new field
that is result of multiplication and use range query.
Can you give ideas to execute these 3 queries?
Thanks for listening
--
View this message in context:
http://lucene.472066.n3.nabble.com/Search-substring-in-field-tp4333553.html
Sent from the Solr - User mailing list archive at Nabble.com.
--
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/