Search substring in field

2017-05-05 Thread jnobre
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
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

3-Search if two multiplied fields are within a range of values (floats)
Example: search if result of the multiplication between 1500 and 2000

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.


Re: Search substring in field

2017-05-09 Thread jnobre
Hello,

Thanks for your response.

I realize the concept, but I do not know which one to use in my case. Not
exactly the difference between the analyzes.

1- At this moment I search for
"source": * "hello word" * or url =
http://:8983/solr/AWP10/select?Indent=on&q=source:*%22hello%20world%22*&wt=json

For example, one line of the answer:
   "source":
["http://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=32";]

The expression does not appear and even then the line is returned.

2 - My idea was to identify a url in the middle of a string with regex, for
example, as it does in Java:
Eur-lex.europa.eu eur-lex.europa.eu eur-lex.europa.eu Eur-lex.europa.eu
eur-lex.europa.eu
I do not know what the syntax is for entering regex in the search.

3- I can use the multiplication function, but not the search syntax to
evaluate its return.






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Search-substring-in-field-tp4333553p4334316.html
Sent from the Solr - User mailing list archive at Nabble.com.