Custom DelegatingCollector : collect sorted docs by score

2017-03-06 Thread Jamel ESSOUSSI
Hi ,

I developped a custom  DelegatingCollector in which I should receive the
documents (in collect method) sorted by score.

I used SolR 5.5.3.

In the older version of SolR, there was a method called
acceptsDocsOutOfOrder() .

Best Regards

--Jamel



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Custom-DelegatingCollector-collect-sorted-docs-by-score-tp4323549.html
Sent from the Solr - User mailing list archive at Nabble.com.


solr4 : disable updateLog

2013-04-18 Thread Jamel ESSOUSSI
Hi,

If I disable (comment) the updateLog bloc, this will affect indexing result:






--
View this message in context: 
http://lucene.472066.n3.nabble.com/solr4-disable-updateLog-tp4056998.html
Sent from the Solr - User mailing list archive at Nabble.com.


Can I start solr with replication activated but disabled between master and slave

2013-01-30 Thread Jamel ESSOUSSI
Hello,

I would like to start solr with the following configuration;

Replication between master and slave activated but not enabled.

Regards



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Can-I-start-solr-with-replication-activated-but-disabled-between-master-and-slave-tp4037333.html
Sent from the Solr - User mailing list archive at Nabble.com.


select one document with a given value for an attribute in a single page

2012-10-29 Thread Jamel ESSOUSSI
I have the Hi all,

I have the following schema

offer:
- offer_id
- offer_title
- offer_description
- related_shop_id
- related shop_name
- offer_price

Each offer is related to a shop.
In one shop, we have many offers

I would like show in one page (26 offers) only one offer from a shop.

I need help to implement this feature. 


Thanks



--
View this message in context: 
http://lucene.472066.n3.nabble.com/select-one-document-with-a-given-value-for-an-attribute-in-a-single-page-tp4016679.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: New SearchRaquestHandler (distinct field value in successive results)

2012-09-04 Thread Jamel ESSOUSSI
I have tested this (grouping), but the problem is :

The grouping does not give me the one by one result



--
View this message in context: 
http://lucene.472066.n3.nabble.com/New-SearchRaquestHandler-distinct-field-value-in-successive-results-tp4005253p4005256.html
Sent from the Solr - User mailing list archive at Nabble.com.


New SearchRaquestHandler (distinct field value in successive results)

2012-09-04 Thread Jamel ESSOUSSI
Hi,

I have the following schema

field1 = shop_name
field2 = offer_id
field3 = offer_title
field4 = offer_price


In the search result, I would not have tow successive results that have the
same shop_name.

I should develop a new SearchRequestHandler ?



Thanks for your help





--
View this message in context: 
http://lucene.472066.n3.nabble.com/New-SearchRaquestHandler-distinct-field-value-in-successive-results-tp4005253.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: flush (delete all document) solr 4 Beta

2012-08-27 Thread Jamel ESSOUSSI
View  https://issues.apache.org/jira/browse/SOLR-3761 SOLR-3761 

Regards



--
View this message in context: 
http://lucene.472066.n3.nabble.com/flush-delete-all-document-solr-4-Beta-tp4003434p4003452.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: flush (delete all document) solr 4 Beta

2012-08-27 Thread Jamel ESSOUSSI
Hi,

Thanks for your reply but It does not work.
It's weird, because with the solr 3.6 and 3.6.1 It's work .


Best regards




--
View this message in context: 
http://lucene.472066.n3.nabble.com/flush-delete-all-document-solr-4-Beta-tp4003434p4003444.html
Sent from the Solr - User mailing list archive at Nabble.com.


flush (delete all document) solr 4 Beta

2012-08-27 Thread Jamel ESSOUSSI
Hi,

I should flush solr (delete all existing documents)
--> for doing this, I have the following code:


HttpSolrServer server = HttpSolrServer(url);

server.setSoTimeout(1000);
server.setConnectionTimeout(100);
server.setDefaultMaxConnectionsPerHost(100);
server.setMaxTotalConnections(100);
server.setFollowRedirects(false);
server.setAllowCompression(true);
server.setMaxRetries(1);
server.setParser(new XMLResponseParser());

UpdateResponse ur = server.deleteByQuery("*:*");

server.commit(true, true);

In the result, I hace already all document, --> the ur.getStatus() eq "0"
and the solr documents was not deleted

--> I have'nt server or client errors

Can you explain me why it did not work,

Thinks











--
View this message in context: 
http://lucene.472066.n3.nabble.com/flush-delete-all-document-solr-4-Beta-tp4003434.html
Sent from the Solr - User mailing list archive at Nabble.com.


Start solr master and solr slave with enable replication = false

2012-07-18 Thread Jamel ESSOUSSI
Hi,

It's possible to start the solr master and slave with the following
configuration

- replication on master disabled when we start solr --> the replication
feature must be available 
- polling on slave disabled --> the replication feature must be available 


-- Best Regards
-- Jamel

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Start-solr-master-and-solr-slave-with-enable-replication-false-tp3995685.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Changing Index directory?

2012-06-12 Thread jamel essoussi
you can use the following configuration:

${solr.data.dir:/opt/data/solr/}/core_name in
solrconfig.xml

--> you should in this case specify the followinf JVM option :
-Dsolr.data.dir=(your path here)
--> /opt/data/solr/core_name : the default value

2012/6/12 Jack Krupansky 

> It is "dataDir" in solrconfig.xml:
>
> http://wiki.apache.org/solr/**SolrConfigXml#dataDir_**parameter<http://wiki.apache.org/solr/SolrConfigXml#dataDir_parameter>
>
> -- Jack Krupansky
>
> -Original Message- From: Bruno Mannina
> Sent: Tuesday, June 12, 2012 2:54 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Changing Index directory?
>
>
> Le 12/06/2012 08:49, Bruno Mannina a écrit :
>
>> Dear All,
>>
>> For tests, I would like to install Solr on standard directory
>> (/home/solr) but with the index in a External HardDisk (/media/myExthdd).
>> I suppose it will decrease performance but it's not a problem.
>>
>> Where can I find the Index Directory Path variable?
>>
>> Thanks a lot,
>> Bruno
>>
>>
>>  sorry Solrconfig.xml ...
>



-- 

Best Regards
-- Jamel  ESSOUSSI


Re: difference between Katta and SolrCloud (replicator factor)

2012-05-31 Thread Jamel ESSOUSSI
Hi,

responses please

-- Jamel E

--
View this message in context: 
http://lucene.472066.n3.nabble.com/difference-between-Katta-and-SolrCloud-replicator-factor-tp3986791p3986998.html
Sent from the Solr - User mailing list archive at Nabble.com.


difference between Katta and SolrCloud (replicator factor)

2012-05-30 Thread Jamel ESSOUSSI
Hi,

I would like to know the difference between Katta and SolrCloud in the
distributed context ? And can we specify in SolrCloud the minimum number of
copies of a document maintained by the cluster (replicator factor).

Best Regards

-- Jamel ESSOUSSI

--
View this message in context: 
http://lucene.472066.n3.nabble.com/difference-between-Katta-and-SolrCloud-replicator-factor-tp3986791.html
Sent from the Solr - User mailing list archive at Nabble.com.


Uncatchable Exception on solrj3.6.0

2012-05-22 Thread Jamel ESSOUSSI
Hi,

I use solr-solrj 3.6.0 and solr-core 3.6.0:

I have reimplemented the handleError of the ConcurrentUpdateSolrServer
class:


final ConcurrentUpdateSolrServer newSolrServer = new
ConcurrentUpdateSolrServer(url, client, 100, 10){
@Override
public void handleError(Throwable ex) {
// TODO Auto-generated method stub
super.handleError(ex);
}
};

My problem is when an exception is thrown in the solr server side I cannot
catch it in the client side.

Thanks

-- Jamel E

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Uncatchable-Exception-on-solrj3-6-0-tp3985437.html
Sent from the Solr - User mailing list archive at Nabble.com.


solrj with incorrect schema

2012-05-18 Thread Jamel ESSOUSSI
Hi;

I have an incorrect schema --> a missing field :

and when I add a documents (UpdateResponse ur = solrServer.add(docs), I have
not be able to catch exception in solrj and the UpdateResponse cannot handle
result in UpdateResponse.

I use solr-core3.6, solr-solrj3.6 and solr.war4.0

Best Regards

– Jamel ESSOUSSI


--
View this message in context: 
http://lucene.472066.n3.nabble.com/solrj-with-incorrect-schema-tp3984615.html
Sent from the Solr - User mailing list archive at Nabble.com.


How detect slave replication termination

2012-05-11 Thread Jamel ESSOUSSI
Hi,

I have an indexer that indexes solr documents, at the end of the indexing I
will initiate replication by activating it on the master and on all slaves,
my question is : how I will know when the replication between the master and
the slave1 will be ended to replicate with the slave2.

Best Regards

--Jamel ESSOUSSI


--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-detect-slave-replication-termination-tp3979991.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How do create dynamic core using SOLRJ

2012-04-27 Thread Jamel ESSOUSSI
you should replace the CoreAdminRequest by CoreAdminResponse

--> CoreAdminResponse e = new CoreAdminRequest().createCore("name",
"instanceDir", newSolrServer);

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944180.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How do create dynamic core using SOLRJ

2012-04-27 Thread Jamel ESSOUSSI
You can also use 

CoreAdminRequest.Create e = new CoreAdminRequest().createCore(name,
instanceDir, server, configFile, schemaFile);

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944166.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How do create dynamic core using SOLRJ

2012-04-27 Thread Jamel ESSOUSSI
try with:

CoreAdminRequest.Create e = new CoreAdminRequest().createCore(name,
instanceDir, server);

Regards
--Jamel

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3944163.html
Sent from the Solr - User mailing list archive at Nabble.com.


Master config

2012-04-27 Thread Jamel ESSOUSSI
Hi,

I use two Solr slaves and one Solr master, it's a good idea to disable all
the the caches in the master ?

Best Regards

-- Jamel ESSOUSSI

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Master-config-tp3943648p3943648.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How do create dynamic core using SOLRJ

2012-04-27 Thread Jamel ESSOUSSI
Hi,

You can use a simple httpurlrequest to create a new core for each customer
as following :

http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data

Regards

Jamel ESSOUSSI

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-create-dynamic-core-using-SOLRJ-tp3943530p3943604.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Tomcat Install

2012-03-29 Thread Jamel ESSOUSSI
Hi,

You should disable velocity by adding -Dsolr.velocity.enabled=false to
JAVA_OPTS

--Jamel


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Tomcat-Install-tp3865290p3866947.html
Sent from the Solr - User mailing list archive at Nabble.com.