Re: Are SOLR nested objects broken for multilevel nesting?

2016-06-19 Thread Alexey Vasyukov
The docs, requests and responses are on the link from the first message -
http://stackoverflow.com/questions/37905553/are-solr-nested-objects-broken-for-multilevel-nesting

The issue has been resolved already (thanks to Mikhail Khludnev). The
solution is also on SO topic.



2016-06-20 0:15 GMT+03:00 Erick Erickson :

> Without showing us an example of
> > the docs
> > how you index them
> > the  query and response you think is correct
> > the query and response you think is incorrect
>
> it's hard to say anything worthwhile. If people
> have seen this and confirmed it's a bug it's
> probably in the JIRA system, have you found
> anything there?
>
> Best,
> Erick
>
> On Sun, Jun 19, 2016 at 9:04 AM, Alexey Vasyukov 
> wrote:
> > Hello folks.
> >
> > I observe quite strange behaviour for multi-level nesting of SOLR objects
> > using both SOLR 5.5.1 and SOLR 6.1.0. Queries for some of nested objects
> > return correct responses, and for other objects responses contain
> > unexpected docs.
> >
> > I tried to sum up everything here -
> >
> http://stackoverflow.com/questions/37905553/are-solr-nested-objects-broken-for-multilevel-nesting
> >
> > Has anyone seen this behaviour? Any ideas on possible fixes or
> workarounds?
> >
> >
> > Kind regards,
> > Alexey
>


About reasons of "enablePositionIncrements" deprecation

2016-06-19 Thread Issei Nishigata
Hi, all.

I am using Solr5.5.

I am planning to activate "enablePositionIncrements" by customizing
"XXXFilterFactory" in order to make autoGeneratedPhraseQueries work
properly.
Can anyone tell me about the impact of such customizing?

I am planning two kinds of customizing mentioned below.
- To allow schema.xml to specify "enbalePositionIncrements".
- To make "lucene43XXXFilter" is called in case of
"enablePositionIncrements=false".

I would appreciate if you can tell me the reason "enablePostionIncrements"
is deprecated after Solr4.4 in the first place.
And, I also appreciate why "lucene43XXXFilter" is completely removed in
Solr6.


Thanks,
Issei


Re: Can someone explain about Sweetspot Similarity ?

2016-06-19 Thread Shawn Heisey
On 6/19/2016 4:09 AM, dirmanhafiz wrote:
> Hi , Im Dirman and im trying experiment solr with sweetspot similarity,,
> can someone tell me min max in sweetspot similarity is about lengthdoc ?
> i have average lengthdoc 3-205 tokens / doc and why while i wrote in my
> schema.xml parameter sweetspot similairity didnt work ?
>
>  multiValued="true" >
>
>   
> 10
> 50
> 0.5
>   
>
>

I do not think you can specify similarity on a per-field basis like
that.  I think that the similarity must be defined at the top schema
level, and it applies to the entire collection (or core for non-cloud mode).

Thanks,
Shawn



Re: Are SOLR nested objects broken for multilevel nesting?

2016-06-19 Thread Erick Erickson
Without showing us an example of
> the docs
> how you index them
> the  query and response you think is correct
> the query and response you think is incorrect

it's hard to say anything worthwhile. If people
have seen this and confirmed it's a bug it's
probably in the JIRA system, have you found
anything there?

Best,
Erick

On Sun, Jun 19, 2016 at 9:04 AM, Alexey Vasyukov  wrote:
> Hello folks.
>
> I observe quite strange behaviour for multi-level nesting of SOLR objects
> using both SOLR 5.5.1 and SOLR 6.1.0. Queries for some of nested objects
> return correct responses, and for other objects responses contain
> unexpected docs.
>
> I tried to sum up everything here -
> http://stackoverflow.com/questions/37905553/are-solr-nested-objects-broken-for-multilevel-nesting
>
> Has anyone seen this behaviour? Any ideas on possible fixes or workarounds?
>
>
> Kind regards,
> Alexey


Re: Solr update/csv

2016-06-19 Thread Upayavira
Don't forget you can set a default value in the field definition in your
schema.

Upayavira

On Sun, 19 Jun 2016, at 03:21 PM, Alexandre Rafalovitch wrote:
> All the parameters are here:
> https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-CSVFormattedIndexUpdates
> 
> Perhaps "literal.fieldname" is what you are looking for? That is
> assuming default value for _other_ fields, not listed in CSV.
> 
> If you are talking about default values which may or may not overriden
> by CSV content, then the best way is probably an
> UpdateRequestProcessor chain that allows to provide a default value:
> http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/update/processor/DefaultValueUpdateProcessorFactory.html
> . (usually combined with
> http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/update/processor/TrimFieldUpdateProcessorFactory.html
> )
> 
> You don't have to have the URP chain be default all the time, but can
> add it as a URL parameter "update.chain".
> 
> Regards,
>Alex.
> 
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
> 
> 
> On 18 June 2016 at 22:02, ovosh  wrote:
> > Hi all!
> > I try to upload some data to my new instance with upload/csv.
> > Like this
> > * curl
> > 'http://localhost:8983/solr/sampler/update/csv?commit=true=%09=%5c=mutation,allele1FWD,allele2REF,type,action,xraw,yraw=/tmp/439.txt'*
> >
> > How i can add some default value for each row?
> >
> >
> >
> >
> > --
> > View this message in context: 
> > http://lucene.472066.n3.nabble.com/Solr-update-csv-tp4283168.html
> > Sent from the Solr - User mailing list archive at Nabble.com.


Re: Can someone explain about Sweetspot Similarity ?

2016-06-19 Thread Ahmet Arslan
Hi,

Sweet spot is designed to punish too long or too short documents.

Did you reindex?

Can you see the mention of sweet spot in debugQuery=true response?

Ahmet



On Sunday, June 19, 2016 2:18 PM, dirmanhafiz  wrote:
Hi , Im Dirman and im trying experiment solr with sweetspot similarity,,
can someone tell me min max in sweetspot similarity is about lengthdoc ?
i have average lengthdoc 3-205 tokens / doc and why while i wrote in my
schema.xml parameter sweetspot similairity didnt work ?



  
10
50
0.5
  

   

i want make out of range min max lengthdoc  will be punished 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Can-someone-explain-about-Sweetspot-Similarity-tp4283248.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr update/csv

2016-06-19 Thread Alexandre Rafalovitch
All the parameters are here:
https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-CSVFormattedIndexUpdates

Perhaps "literal.fieldname" is what you are looking for? That is
assuming default value for _other_ fields, not listed in CSV.

If you are talking about default values which may or may not overriden
by CSV content, then the best way is probably an
UpdateRequestProcessor chain that allows to provide a default value:
http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/update/processor/DefaultValueUpdateProcessorFactory.html
. (usually combined with
http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/update/processor/TrimFieldUpdateProcessorFactory.html
)

You don't have to have the URP chain be default all the time, but can
add it as a URL parameter "update.chain".

Regards,
   Alex.

Newsletter and resources for Solr beginners and intermediates:
http://www.solr-start.com/


On 18 June 2016 at 22:02, ovosh  wrote:
> Hi all!
> I try to upload some data to my new instance with upload/csv.
> Like this
> * curl
> 'http://localhost:8983/solr/sampler/update/csv?commit=true=%09=%5c=mutation,allele1FWD,allele2REF,type,action,xraw,yraw=/tmp/439.txt'*
>
> How i can add some default value for each row?
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-update-csv-tp4283168.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Solr update/csv

2016-06-19 Thread ovosh
Hi all!
I try to upload some data to my new instance with upload/csv.
Like this
* curl
'http://localhost:8983/solr/sampler/update/csv?commit=true=%09=%5c=mutation,allele1FWD,allele2REF,type,action,xraw,yraw=/tmp/439.txt'*

How i can add some default value for each row? 




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


Are SOLR nested objects broken for multilevel nesting?

2016-06-19 Thread Alexey Vasyukov
Hello folks.

I observe quite strange behaviour for multi-level nesting of SOLR objects
using both SOLR 5.5.1 and SOLR 6.1.0. Queries for some of nested objects
return correct responses, and for other objects responses contain
unexpected docs.

I tried to sum up everything here -
http://stackoverflow.com/questions/37905553/are-solr-nested-objects-broken-for-multilevel-nesting

Has anyone seen this behaviour? Any ideas on possible fixes or workarounds?


Kind regards,
Alexey


Can someone explain about Sweetspot Similarity ?

2016-06-19 Thread dirmanhafiz
Hi , Im Dirman and im trying experiment solr with sweetspot similarity,,
can someone tell me min max in sweetspot similarity is about lengthdoc ?
i have average lengthdoc 3-205 tokens / doc and why while i wrote in my
schema.xml parameter sweetspot similairity didnt work ?



  
10
50
0.5
  

   

i want make out of range min max lengthdoc  will be punished 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Can-someone-explain-about-Sweetspot-Similarity-tp4283248.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SOLR war for SOLR 6

2016-06-19 Thread danny teichthal
If you are running on tomcat you will probably have a deployment problem.
On version 5.2.1 it worked fine for me, I manually packaged solr.war on
build time.
But, when trying to upgrade to Solr 5.5.1, I had problems with incompatible
servlet-api of Solr's jetty version and my tomcat servlert-api.
Solr code explicitly use some new methods that existed in the Jetty, but
not in my tomcat.
For me it was a no-go, from all the reasons that Shawn stated.




On Sat, Jun 18, 2016 at 12:26 AM, Shawn Heisey  wrote:

> On 6/16/2016 1:20 AM, Bharath Kumar wrote:
> > I was trying to generate a solr war out of the solr 6 source, but even
> > after i create the war, i was not able to get it deployed correctly on
> > jboss. Wanted to know if anyone was able to successfully generate solr
> > war and deploy it on tomcat or jboss? Really appreciate your help on
> > this.
>
> FYI: If you do this, you're running an unsupported configuration.
> You're on your own for both getting it working AND any problems that are
> related to the deployment rather than Solr itself.
>
> You actually don't need to create a war.  Just run "ant clean server" in
> the solr directory of the source code and then install the exploded
> webapp (found in server/solr-webapp/webapp) into the container.  There
> should be instructions available for how to install an exploded webapp
> into tomcat or jboss.  As already stated, you are on your own for
> finding and following those instructions, and if Solr doesn't deploy,
> you will need to talk to somebody who knows the container for help.
> Once they are sure you have the config for the container right, they may
> refer you back here ... but because it's an unsupported config, the
> amount of support we can offer is minimal.
>
> https://wiki.apache.org/solr/WhyNoWar
>
> If you want the admin UI to work when you install into a user-supplied
> container, then you must set the context path for the app to "/solr".
> The admin UI in 6.x will not work if you use another path, and that is
> not considered a bug, because the only supported container has the path
> hardcoded to /solr.
>
> Thanks,
> Shawn
>
>