YouPeng Yang | 24 Apr 10:30 2014
Picon

UnsupportedOperationException when DIH in SolrCloud

SolrCloud 4.6.0

  I am using SolrCloud 4.6.0 with a master and replica.I adopt the
DistributedUpdateProcessorFactory to distribute the doc between the master
and replica.
  Firstly,If the master and replica both empty,the DIH will be succeed.
  And then, DIH again,the replica always thow an
UnsupportedOperationException as [1].
  the

  I have check the src,Finally find the FunctionValues.longVal function:
  public long longVal(int doc) { throw new UnsupportedOperationException();
}
 and the implement class  StrDocValues  does not override the function.

  And ,I come a idea that,the uniqueKey of the doc that is imported is a
string FiledType. As result the StrDocValues.longVal just throw the
UnsupportedOperationException .

  If I really have the uniqueKey be string,is there a way to overwhelm this
error?

Any suggestion wiil be appreciated.

---------------------------------------------------------------------------------
80711457 [http-bio-8082-exec-19] ERROR org.apache.solr.core.SolrCore  –
java.lang.UnsupportedOperationException
    at
org.apache.lucene.queries.function.FunctionValues.longVal(FunctionValues.java:46)
    at
(Continue reading)

YouPeng Yang | 24 Apr 05:33 2014
Picon

error when update.distrib=FROMLEADER

Within Solr Cloud 4.6.0,I have a master core and indexing to it using
DIH.In the meantime,I also update indexes with solrJ.
Things go well until I create a replication of the master,Exception comes
out as [1].

When do I get this exception?

[1]---------------------------
org.apache.solr.common.SolrException: Internal Server Error request:
http://10.1.22.1:8082/solr/tv_201404_r1/update?update.distrib=FROMLEADER&distrib.from=http%3A%2F%2F10.1.22.1%3A8080%2Fsolr%2Ftv_201404%2F&wt=javabin&version=2
    at
org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer$Runner.run(ConcurrentUpdateSolrServer.java:240)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:662)
4495502413 [http-bio-8080-exec-114] INFO
org.apache.solr.update.processor.LogUpdateProcessor  – [tv_201404]
webapp=/solr path=/update params={wt=javabin&version=2}
{add=[LKLPOSLK008354580025420424103438 (1466234083906420736)]} 0 2
4495502413 [updateExecutor-1-thread-234] INFO
org.apache.solr.update.processor.DistributedUpdateProcessor  – try and ask
http://10.1.22.1:8082/solr to recover
bbi123 | 24 Apr 00:34 2014
Picon

Replication - Configurable location of External files?

Hi,

The current version of SOLR that I am using (4.2) always searches for
external files in 'data' directory. 

This makes replication (of external files very difficult) as replication
handler looks only in 'conf' folder. I would suggest to make the path
configurable so that we can place these files in any folder inside 'conf'
directory and replicate it to slave using replication.

I am not sure if there is a JIRA already opened for this, if so please let
me know the JIRA#. I tried searching for it but couldn't find any.

Thanks,
BBi

--
View this message in context: http://lucene.472066.n3.nabble.com/Replication-Configurable-location-of-External-files-tp4132773.html
Sent from the Solr - User mailing list archive at Nabble.com.

atuldj.jadhav | 24 Apr 00:22 2014
Picon

Selectively hiding SOLR facets.

Hi team.

Please help me address one problem I am facing in SOLR faceting.
I have two websites (for countries Belgium & US) on each of these websites I
have a managers details page which is served from a common SOLR index.

I have indexed feed xml in SOLR.
<add>
<doc> 
	<field name="id">1</field>
	<field name="language">French</field>
      	<field name="country">BE</field>
     	<field name="author">Chris</field>
</doc>	
<doc> 
	<field name="id">2</field>
	<field name="language">Dutch</field>
         <field name="country">UK</field>
         <field name="author">Jeff</field>
</doc>	
<doc> 
	<field name="id">3</field>
	<field name="language">Spanish</field>
       	<field name="country">USA</field>
       	<field name="author">Jacek</field>
</doc>	
<doc> 
	<field name="id">4</field>
	<field name="language">English</field>
  <field name="country">USA</field>
(Continue reading)

abhishek jain | 23 Apr 21:46 2014
Picon

Typecast non stored string field for sorting

Hi friends,
I have a field which is string which I created by mistake it should have
been int.
It is not stored just indexed.

I want to numerically sort it, and hence I want a function which can at
query convert to integer or double and then I can apply sort. Is it
possible?
If not then can I create a new field with the value from non stored field?

Please advise.
Thanks
Abhishek

--

-- 
Thanks and kind Regards,
Abhishek jain
+91 9971376767
Jeroen Steggink | 23 Apr 17:09 2014
Picon

AnalyzingInfixSuggester's indexPath

Hi,

Recently I started experimenting with the AnalyzingInfixSuggester.
However, I just found out the index is put in the Solr home directory instead of the default ./data directory
of the core.
I can set a specific indexPath, but it would be nice if the default data dir would be used when nothing is set.

It adds two directories in Solr home:
analyzingInfixSuggesterIndexDir
analyzingInfixSuggesterIndexDir.tmp

Is this a bug? I don't see any reference in the code to the default data dir.
Or is there a specific reason it works this way?

Best regards,

Jeroen

Olivier.Masseau | 23 Apr 15:38 2014
Picon

Problem indexing email attachments

Hello, 

I'm trying to index email files with Solr (4.7.2)

The files have the extension .eml (message/rfc822) 

The mail body is correctly indexed but attachments are not indexed if they 
are not .txt files. 

If attachments are .txt files it works, but if attachment are .pdf of 
.docx files they are not indexed. 

I checked the extracted text by calling: 

curl "
http://localhost:8983/solr/update/extract?literal.id=doc1&commit=true&extractOnly=true&extractFormat=text
" -F "myfile= <at> Test1.eml" 

The returned extracted text does not contain the content of the 
attachments if they are not .txt files. 

It is not a problem with the Apache Tika library not being able to process 
attachments, because running the standalone Apache Tika app by calling: 

java -jar tika-app-1.4.jar -t Test1.eml 

on my eml files correctly displays the attachments' text. 

Maybe is it a problem with how Tika is called by Solr ? 

(Continue reading)

~$alpha` | 23 Apr 12:14 2014
Picon

solr parallel update and total indexing Issue

There is a bis issue in solr parallel update and total indexing 

    Total Import syntax (working) 
    dataimport?command=full-import&commit=true&optimize=true 

    Update syntax(working) 
    solr/update?softCommit=true' -H 'Content-type:application/json' -d
'[{"id":"1870719","column":{"set":11}}]' 

Issue: If both are run in parallel, then commit in b/w take place. 

Example: i have 10k in total indexes.... i fire an solr query to update 1000
records and in between i fire a total import(full indexer).... what's
happening is that in between commit is taken place... i.e untill total
indexer runs i got limited records(1000). 

How to solve this ?

--
View this message in context: http://lucene.472066.n3.nabble.com/solr-parallel-update-and-total-indexing-Issue-tp4132652.html
Sent from the Solr - User mailing list archive at Nabble.com.

Suresh Soundararajan | 23 Apr 09:38 2014

RE: Apache Solr 3.6.

Vignesh,

    Update the fl parameter with the keyword field you defined in your schema file which will return the
keywords attached to the document.

Thanks,
SureshKumar.S
________________________________
From: vignesh <vignesh.v <at> ninestars.in>
Sent: Wednesday, April 23, 2014 1:04 PM
To: solr-user <at> lucene.apache.org
Subject: Apache Solr 3.6.

Hi Team,

               I am Vignesh and working in Apache Solr 3.6 for my project. Kindly provide me a solution for the post which I
have given below.

Example 1:

         Keyword :gardens and the output in JSON format.

{
  "responseHeader":{
    "status":0,
    "QTime":0,
    "params":{
      "fl":"id",
      "indent":"on",
      "start":"0",
(Continue reading)

vignesh | 23 Apr 09:34 2014
Picon

Apache Solr 3.6.

Hi Team,

 

               I am Vignesh and working in Apache Solr 3.6 for my project. Kindly provide me a solution for the post which I have given below.

 

Example 1:

 

         Keyword :gardens and the output in JSON format.

 

{

  "responseHeader":{

    "status":0,

    "QTime":0,

    "params":{

      "fl":"id",

      "indent":"on",

      "start":"0",

      "q":"gardens",

      "wt":"json",

      "rows":"10",

      "version":"2.2"}},

  "response":{"numFound":5,"start":0,"docs":[

      {

        "id":"20140205_Anfield_and_Walton_Star_Reg-null_Sup-null_Ed-01_031"},

      {

        "id":"20140205_Stroud_Life_Reg-null_Sup-supplement2_Ed-01_018"},

      {

        "id":"20140206_Suffolk_Free_Press_Reg-null_Sup-null_Ed-01_044"},

      {

        "id":"20140205_Luton_News_Reg-null_Sup-null_Ed-01_052"},

    

      {

        "id":"20140206_Herald_Express_Reg-null_Sup-null_Ed-01_025"}]

  }}

 

 

Example 2:

 

         Keyword : gardens+AND+Reception+AND+Lounge+AND+Front  and the output in JSON format.

 

{

 "responseHeader":{

    "status":0,

    "QTime":0,

    "params":{

      "fl":"id",

      "indent":"on",

      "start":"0",

      "q":"gardens OR Reception OR Lounge OR Front",

      "wt":"json",

      "rows":"10",

      "version":"2.2"}},

  "response":{"numFound":5,"start":0,"docs":[

      {

        "id":"20140205_East_Grinstead_Courier_Reg-null_Sup-property_Ed-01_017"},

      {

        "id":"20140205_Anfield_and_Walton_Star_Reg-null_Sup-null_Ed-01_031"},

      {

        "id":"20140206_Lytham_St_Annes_Express_Reg-null_Sup-null_Ed-01_046"},

      {

        "id":"20140206_Derbyshire_Times_Reg-null_Sup-supplement_Ed-01_009"},

      {

        "id":"20140206_Washington_Star_Reg-null_Sup-null_Ed-01_027"}]

  }}

 

In this Example 2 I want keyword list matching a file.

 

Note : In this 5 files some files may contain gardens and some may contain gardens, Front and Lounge. So kindly guide me to get the keyword list like mentioned below.

 

id:20140205_East_Grinstead_Courier_Reg-null_Sup-property_Ed-01_017

Keyword Matched :  gardens

 

id:20140206_Washington_Star_Reg-null_Sup-null_Ed-01_027

Keyword Matched :  gardens, Lounge.

 

 

 

Thanks & Regards.

Vignesh.V

 

Ninestars Information Technologies Limited.,

72, Greams Road, Thousand Lights, Chennai - 600 006. India.

Landline : +91 44 2829 4226 / 36 / 56   X: 144

www.ninestars.in

 


STOP Virus, STOP SPAM, SAVE Bandwidth!
www.safentrix.com
hungctk33 | 23 Apr 03:46 2014
Picon

Join solr

Hi all,
A problem .

http://localhost:8081/solr/products/select?q={!join%20from=category_id%20to=category_id%20fromIndex=categories}yyy

-yyy : &sort= category_name+desc

You have a query for problem. Help me 

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


Gmane