Re: Help on Notification for SOLR

2014-11-24 Thread Ramzi Alqrainy
of course there is another approach which is using Solr Clients. So, you can use solr clients for specific language like PHP, JAVA, ... For Example : JAVA Solr Client : SolrJ is an API that makes it easy for Java applications to talk to Solr. SolrJ hides a lot of the details of connecting to Sol

Re: how solr4.0 and zookeeper run on weblogic

2014-11-24 Thread Ramzi Alqrainy
I hope this post helps you http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-td4013882.html -- View this message in context: http://lucene.472066.n3.nabble.com/how-solr4-0-and-zookeeper-run-on-weblogic-tp4170625p4170679.html Sent from the Solr - User mailing list arc

Re: Indexing nested document to support blockjoin queries in solr 4.10.1

2014-11-05 Thread Ramzi Alqrainy
You can model this in different ways, depending on your searching/faceting needs. Usually you'll use multivalued or dynamic fields. In the next examples I'll omit the field type, indexed and stored flags: Another one: Here you would store fields 'c_name_1

Re: create new core based on named config set using the admin page

2014-11-05 Thread Ramzi Alqrainy
Sorry, I did not get your point, can you please elaborate more -- View this message in context: http://lucene.472066.n3.nabble.com/create-new-core-based-on-named-config-set-using-the-admin-page-tp4167850p4167860.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Cannot use Phrase Queries in eDisMax and filtering

2014-11-03 Thread Ramzi Alqrainy
I tried to produce your case in my machine with below queries, but everything worked fine with me. I just want to ask you a question what is the field type of "tag" field ? q=bmw& fl=score,*& wt=json& fq=city_id:59& qt=/query& defType=edismax& pf=title^15%20discription^5& pf3=1& pf2=1& ps=1& qroup

Re: Cannot use Phrase Queries in eDisMax and filtering

2014-11-03 Thread Ramzi Alqrainy
The results are different, because you need to set "start" parameter 0 instead of 50 in the first query (after filtration ) with same rows value -- View this message in context: http://lucene.472066.n3.nabble.com/Cannot-use-Phrase-Queries-in-eDisMax-and-filtering-tp4167302p4167329.html Sent fr

Re: Boosting on field-not-empty

2014-10-30 Thread Ramzi Alqrainy
You can use FunctionQuery that allows one to use the actual value of a field and functions of those fields in a relevancy score. Two function will help you, which are : *exists* exists(field|function) returns true if a value exists for a given document. Example use: exists(myField) will return

Re: Automating Solr

2014-10-30 Thread Ramzi Alqrainy
Simple add this line to your crontab with crontab -e command: 0,30 * * * * /usr/bin/wget http://:8983/solr//dataimport?command=full-import This will full import every 30 minutes. Replace and with your configuration *Using delta-import command* Delta Import operation can be started by hitting

Re: Clear Solr Admin Interface Logging page's logs

2014-10-29 Thread Ramzi Alqrainy
Yes sure, if you use jetty container to run solr, you can remove solr.log file from $SOLR_HOME/example/logs by using this command for Linux/Unix rm -rf $SOLR_HOME/example/logs/solr.log For windows DEL $SOLR_HOME/example/logs/solr.log After that, you can check the logging interface. --

RE: update external file

2014-10-23 Thread Ramzi Alqrainy
Right, There is no REST support for it like the synonym filter, or was it stop filter. -- View this message in context: http://lucene.472066.n3.nabble.com/update-external-file-tp4165563p4165577.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: update external file

2014-10-23 Thread Ramzi Alqrainy
I hope I understand your question well. so I had the same problem. This is what I did: 1. Create a file: solr_home/PROJECT/multicore/core1/data/external_popularProducts.txt The file should contain values like this: uniqueID_in_core=count Example: 873728721=19 842728342=20 2. Update schema.xml,

Re: update external file

2014-10-23 Thread Ramzi Alqrainy
Of course, there is a support for uploading the external file via Solr, you can find more details in below links https://cwiki.apache.org/confluence/display/solr/Working+with+External+Files+and+Processes http://lucene.apache.org/solr/4_10_0/solr-core/org/apache/solr/schema/ExternalFileField.html

Re: StatelessScriptUpdateProcessorFactory Access to Solr Core/schema/analyzer etc

2014-10-22 Thread Ramzi Alqrainy
In the below script you have access to several Solr objects, allowing you for instance to modify the document before it’s indexed by Solr or to add some lines to the Solr log. It’s best demonstrated by an example.

Re: QParserPlugin question

2014-10-22 Thread Ramzi Alqrainy
I don't know why you need to change it ? you can use &omitHeader=true on the URL to remove header if you want. -- View this message in context: http://lucene.472066.n3.nabble.com/QParserPlugin-question-tp4165368p4165373.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: SolrJ and Lucene queries

2014-10-21 Thread Ramzi Alqrainy
Yeah, it's a shame such a ser/deser feature isn't available in Lucene. My idea is to have a separate module that the Query classes can delegate to for serialization and deserialization, handling recursion for nested query objects, and then have modules for XML, JSON, and a pseudo-Java functiona

Re: Suggester on Dynamic fields

2014-10-21 Thread Ramzi Alqrainy
Use query() to have Solr search for results. You have to pass a SolrQuery object that describes the query, and you will get back a QueryResponse (from the org.apache.solr.client.solrj.response package). SolrQuery has methods that make it easy to add parameters to choose a request handler and send p

Re: SolrJ and Lucene queries

2014-10-21 Thread Ramzi Alqrainy
Use query() to have Solr search for results. You have to pass a SolrQuery object that describes the query, and you will get back a QueryResponse (from the org.apache.solr.client.solrj.response package). SolrQuery has methods that make it easy to add parameters to choose a request handler and send p

Re: Nested documents in Solr

2014-10-21 Thread Ramzi Alqrainy
I think if I have your question right, You can use multiple custom query syntax. You explicitly specify an alternative query parser such as DisMax or eDisMax, you're using the standard Lucene query parser by default. In your case, I think I can solve it by using this query chapter_title:Introducti

Re: Some clarification needed on "migrate" command in Collections API

2014-10-21 Thread Ramzi Alqrainy
The MIGRATE command is a synchronous operation and therefore keeping a large read timeout on the invocation is advised. The request may still timeout due to inherent limitations of the Collection APIs but that doesn’t necessarily mean that the operation has failed. Users should check logs, cluster

Re: How to properly use Levenstein distance with ~ in Java

2014-10-20 Thread Ramzi Alqrainy
Because ~ is proximity matching. Lucene supports finding words are a within a specific distance away. Search for "foo bar" within 4 words from each other. "foo bar"~4 Note that for proximity searches, exact matches are proximity zero, and word transpositions (bar foo) are proximity 1. A query suc

Re: Verify if solr reload core is successful or not

2014-10-20 Thread Ramzi Alqrainy
The response would be -- View this message in context: http://lucene.472066.n3.nabble.com/Verify-if-solr-reload-core-is-successful-or-not-tp4164981p4165076.html Sent from the Solr - User mailing list archive

Re: unstable results on refresh

2014-10-20 Thread Ramzi Alqrainy
Can you please provide us the exception when the shard goes out of sync ? Please monitor the logs. -- View this message in context: http://lucene.472066.n3.nabble.com/unstable-results-on-refresh-tp4164913p4165002.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Word Break Spell Checker Implementation algorithm

2014-10-20 Thread Ramzi Alqrainy
WordBreakSolrSpellChecker offers suggestions by combining adjacent query terms and/or breaking terms into multiple words. It is a SpellCheckComponent enhancement, leveraging Lucene's WordBreakSpellChecker. It can detect spelling errors resulting from misplaced whitespace without the use of shingle-

Re: Verify if solr reload core is successful or not

2014-10-20 Thread Ramzi Alqrainy
when you hit a request in the browser http://localhost:8983/solr/admin/cores?action=RELOAD&core=core0 you will receive this response 0 1316 That means that every thing is fine -- View this message in context: http://lucene.472066.n3.nabble.com/Verify-if-solr-reload-

Re: Solr replicas - stop replication and start again

2014-10-20 Thread Ramzi Alqrainy
You can add a new replicas but I think you can't revive the old one. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-replicas-stop-replication-and-start-again-tp4164931p4164988.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr replicas - stop replication and start again

2014-10-20 Thread Ramzi Alqrainy
You can also delete shard also -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-replicas-stop-replication-and-start-again-tp4164931p4164945.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr replicas - stop replication and start again

2014-10-20 Thread Ramzi Alqrainy
You can delete replicas from shard by using this command /admin/collections?action=DELETEREPLICA&collection=collection&shard=shard&replica=replica Delete a replica from a given collection and shard. If the corresponding core is up and running the core is unloaded and the entry is removed from the

Re: CoreAdminRequest in SolrCloud

2014-10-20 Thread Ramzi Alqrainy
Querying all shards for a collection should look familiar; it's as though SolrCloud didn't even come into play: /http://localhost:8983/solr/collection1/select?q=*:*/ If, on the other hand, you wanted to search just one shard, you can specify that shard, as in: /http://localhost:8983/solr/collect

Re: FW: Complex boost statement

2014-10-19 Thread Ramzi Alqrainy
Please try this if(and(exists(query({!v="BUS_CITY:regina"})),exists(BUS_IS_NEARBY)),20,1) -- View this message in context: http://lucene.472066.n3.nabble.com/Complex-boost-statement-tp4164572p4164885.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Query parsing - difference between Analysis and parsedquery_toString output

2014-10-19 Thread Ramzi Alqrainy
"q": "manufacture_t:The Hershey Company^100 OR title_t:The Hershey Company^1000" Firstly, Make sure that manufacture_t and title_t are text_general type, and Let's use this approach instead of your approach q=The Hershey Company&q.op=AND&qf=manufacture_t title_t&defType=edismax -- View thi

Re: How to properly use Levenstein distance with ~ in Java

2014-10-19 Thread Ramzi Alqrainy
You can use Levenstein Distance algorithm inside solr without writing code by specifing the source of terms in solrconfig.xml solr.IndexBasedSpellChecker ./spellchecker content true This example shows the results of a simple query that defines a query using the spellcheck.

Re: Recovering from Out of Mem

2014-10-19 Thread Ramzi Alqrainy
You can create a script to ping on Solr every 10 sec. if no response, then restart it (Kill process id and run Solr again). This is the fastest and easiest way to do that on windows. -- View this message in context: http://lucene.472066.n3.nabble.com/Recovering-from-Out-of-Mem-tp4164167p4164882

Request to add my username to ContributorsGroup

2014-01-15 Thread Ramzi Alqrainy
My wiki username Ramzi Alqrainy -- Sincerely , *Ramzi Alqrainy* Mobile: +962 (7) 9551 6105 Email: ramzi.alqra...@gmail.com My Profile: http://jo.linkedin.com/in/ramzialqrainy -- This e-mail and any attachments to it contains information which may be

Advice : High-traffic web site

2013-05-29 Thread Ramzi Alqrainy
Hi Team, Please I need your advice, I have high-traffic web site (100 million page views/month) to 22 country and I want to build fast and powerfull search engine. So, I use solr 4.3 and sperate every country to collection , but I want to build right structure to accommodates high traffic .So, Wha

Solr : Condition Before Group By

2012-09-04 Thread Ramzi Alqrainy
Hi, I would like to help me for certain problem. My problem is : I have documents and I do group by on certain field (e.g. Field1). I want to get documents with Field2 is [3 or 9 or 12] if exist, otherwise get any document. please see the below example. D1 :--- Field1

Re: Missing Features - AndMaybe and Otherwise

2012-09-04 Thread Ramzi Alqrainy
Many thanks for your email, but what about Solr? and how we can handle my case ? Thanks, -- View this message in context: http://lucene.472066.n3.nabble.com/Missing-Features-AndMaybe-and-Otherwise-tp4005059p4005163.html Sent from the Solr - User mailing list archive at Nabble.com.

Missing Features - AndMaybe and Otherwise

2012-09-03 Thread Ramzi Alqrainy
Hi, I would like to help me for certain problem. I have encountered a problem in task I think if you implement the below functions/conditions, you will help us for many issues. *AndMaybe(a, b)* Binary query takes results from the first query. If and only if the same document also appears in the

Re: Solr Partial and Exact Matching

2012-08-27 Thread Ramzi Alqrainy
But I don't want to add these words as static because I can't restrict or inclose all words, I need to play on weight only. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Partial-and-Exact-Matching-tp4003478p4003508.html Sent from the Solr - User mailing list archive a

Re: Solr Partial and Exact Matching

2012-08-27 Thread Ramzi Alqrainy
Many Thanks for your kind email. I expect that I have reached the information in some other way. I will explain my point again with different scenario. I have a big data of places. let's take sample of restaurants places under category restaurants. Some of places contains "Restaurant" in their nam

Re: Solr Partial and Exact Matching

2012-08-27 Thread Ramzi Alqrainy
Please allow me to add another document with another example. D3 : Place Title : Pizza Jons Review : I love it. When the user search for pizza [General Query] we need to decrease the rank for place title and gets Little Caesar Pizza hut Pizza Jons When we search for Jons [Search For Name] Pizz

Solr Partial and Exact Matching

2012-08-27 Thread Ramzi Alqrainy
I want to ask you about partial and exact matching. I have documents for Places and we need to get exact match if the user search for place name and get the results based on other factors (not place name) if the query is general or partial. This is an example to explain more details. If we supp

Re: Solr Score threshold 'reasonably', independent of results returned

2012-08-25 Thread Ramzi Alqrainy
You are right Mr.Ravish, because this depends on (ranking and search fields) formula, but please allow me to tell you that Solr score can help us to define this document is relevant or not in some cases. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Score-threshold-r

Re: Solr Score threshold 'reasonably', independent of results returned

2012-08-25 Thread Ramzi Alqrainy
It will never return no result because its relative to score in previous result If score<0.25*last_score then stop Since score>0 and last score is 0 for initial hit it will not stop -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-Score-threshold-reasonably-independent

Solr Score threshold 'reasonably', independent of results returned

2012-08-20 Thread Ramzi Alqrainy
Usually, search results are sorted by their score (how well the document matched the query), but it is common to need to support the sorting of supplied data too. Boosting affects the scores of matching documents in order to affect ranking in score-sorted search results. Providing a boost value, wh

Facet count problem : Multi-Select Faceting After grouping results

2011-09-20 Thread Ramzi Alqrainy
Dear All , Kindly note that I using Solr 4.0 and Kindly note that /*group.truncate=true*/ calculates facet counts that based on the most relevant document of each group matching the query. *But* when I used Multi-Select Faceting [Tagging and excluding Filters] , the solr can't calculate the facet