Stateless queries to secured SOLR server.

2017-10-29 Thread Phil Scadden
While SOLR is behind a firewall, I want to now move to a secured SOLR 
environment. I had been hoping to keep SOLRJ out of the picture and just using 
httpURLConnection. However, I also don't want to maintain session state, 
preferring to send authentication with every request. Is this possible with 
basic Authorization?
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.


Re: Graph Traversal

2017-10-29 Thread Pratik Patel
For now, you can probably use Cartesian function of Streaming Expressions
which Joel implemented to solve the same problem.

https://issues.apache.org/jira/browse/SOLR-10292
http://joelsolr.blogspot.com/2017/03/streaming-nlp-is-coming-in-solr-66.html

Regards,
Pratik

On Sat, Oct 28, 2017 at 7:38 PM, Joel Bernstein  wrote:

> I don't see a jira ticket for this yet. Feel free to create it and reply
> back with the link.
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Fri, Oct 27, 2017 at 9:55 AM, Kojo  wrote:
>
> > Hi, I was looking for information on Graph Traversal. More specifically,
> > support to search graph on multivalued field.
> >
> > Searching on the Internet, I found a question exactly the same of mine,
> > with an answer that what I need is not implemented yet:
> > http://lucene.472066.n3.nabble.com/Using-multi-valued-
> > field-in-solr-cloud-Graph-Traversal-Query-td4324379.html
> >
> >
> > Is there a ticket on Jira to follow the implementation of search graph on
> > multivalued field?
> >
> > Thank you,
> >
>


mvn test failing

2017-10-29 Thread Tarique Anwer
hi,

I am new to Solr.
I am trying to build Solr from source code using Maven.
So I performed the following steps:

1. Download the source code zip from https://github.com/apache/lucene-solr
2. unzip & run from top level dir:
  $ ant get-maven-poms
$ cd maven-build

3. then build:
  $ mvn -DskipTests install

Which shows that build is successful.

So I tried to run the tests afterwords:
  $ mvn test

But tests are failing:

[INFO] Apache Solr Analysis Extras  FAILURE [02:48
min]
[INFO] Apache Solr Core tests . SKIPPED
[INFO] Apache Solr Core aggregator POM  SKIPPED
[INFO] Apache Solr Solrj tests  SKIPPED
[INFO] Apache Solr Solrj aggregator POM ... SKIPPED
[INFO] Apache Solr Analytics Package .. SKIPPED
[INFO] Apache Solr Clustering . SKIPPED
[INFO] Apache Solr DataImportHandler .. SKIPPED
[INFO] Apache Solr DataImportHandler Extras ... SKIPPED
[INFO] Apache Solr Content Extraction Library . SKIPPED
[INFO] Apache Solr Language Identifier  SKIPPED
[INFO] Apache Solr Learning to Rank Package ... SKIPPED
[INFO] Apache Solr UIMA integration ... SKIPPED
[INFO] Apache Solr Velocity ... SKIPPED
[INFO] Apache Solr Contrib aggregator POM . SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 17:45 min
[INFO] Finished at: 2017-10-29T05:46:43Z
[INFO] Final Memory: 194M/1999M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on
project solr-analysis-extras: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/ec2-user/tariq/lucene-solr-master/maven-build/solr/contrib/analysis-extras/target/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]



Did I do something wrong? Or i missed some steps before build.
Any help is highly appreciated.


​With Regards,​

Tariq


Re: Extended characters

2017-10-29 Thread TK Solr

I think you can use ASCIIFoldingFIlter

http://lucene.apache.org/core/6_2_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html

by inserting its factory in your schema.

http://lucene.apache.org/core/6_2_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilterFactory.html

I would suggest making a separate field for this so that exact match can be 
boosted.

On 10/29/17 10:56 AM, Robert Brown wrote:

Hi,

I have a text field in my index containing extended characters, which I'd like 
to match against when searching without the extended characters.


e.g.  field contains "Ensō" which I want to match when searching for just 
"enso".

My current config for that field (type) is given below:


autoGeneratePhraseQueries="true">






synonyms="index_synonyms.txt" ignoreCase="true" expand="true" />



words="lang/stopwords_en.txt" />




















words="lang/stopwords_en.txt" />





















Kuro


Extended characters

2017-10-29 Thread Robert Brown

Hi,

I have a text field in my index containing extended characters, which 
I'd like to match against when searching without the extended characters.


e.g.  field contains "Ensō" which I want to match when searching for 
just "enso".


My current config for that field (type) is given below:


positionIncrementGap="100" autoGeneratePhraseQueries="true">






synonyms="index_synonyms.txt" ignoreCase="true" expand="true" />



words="lang/stopwords_en.txt" />




















words="lang/stopwords_en.txt" />