Re: Phrase Query only forward direction

2017-06-12 Thread Aman Deep Singh
Thanks Eric On Mon, Jun 12, 2017 at 10:28 PM Erick Erickson wrote: > Complex phrase also has an inorder flag that I think you're looking for > here. > > Best, > Erick > > On Mon, Jun 12, 2017 at 7:16 AM, Erik Hatcher > wrote: > > Understood.

Re: Solr Join Failures

2017-06-12 Thread Ray Niu
I am using following one: http://lucene.apache.org/solr/5_4_1/solr-core/org/apache/solr/search/join/ScoreJoinQParserPlugin.html q={!join from=id to=id fromIndex=B}id:* 2017-06-12 20:05 GMT-07:00 Zheng Lin Edwin Yeo : > What is the query that you used to do the Join? > >

Re: Solr Join Failures

2017-06-12 Thread Zheng Lin Edwin Yeo
What is the query that you used to do the Join? There is the Streaming expression which has the various Join function, but it requires Solr version 6 onward. https://cwiki.apache.org/confluence/display/solr/Streaming+Expressions Regards, Edwin On 13 June 2017 at 05:25, Ray Niu

RE: Highlighter not working on some documents

2017-06-12 Thread Phil Scadden
I managed to miss that. Thanks very much. I have some very large documents. I will look at index size and look at posting instead. -Original Message- From: David Smiley [mailto:david.w.smi...@gmail.com] Sent: Monday, 12 June 2017 2:40 p.m. To: solr-user@lucene.apache.org Subject: Re:

Solr Join Failures

2017-06-12 Thread Ray Niu
Hi: We encounter an issue when using join query in Solr Cloud, our version is 5.5.2. We will query collection A and join with Collection B in the runtime, collection A and B always co-exist in the same node. Sometimes we found collection B was down for some reason, while collection A was

Re: _version_ as LongPointField returns error

2017-06-12 Thread Shawn Feldman
Should i make stored=false? don't i need _version_ for the mvcc semantics? On Mon, Jun 12, 2017 at 10:41 AM Chris Hostetter wrote: > > just replying to some comments/discussion in general rather then > individual msgs/sentences.. > > * uninversion/FieldCache of

RE: Parallel API interface into SOLR

2017-06-12 Thread Rohit Jain
Thanks a lot Joel! No wonder I could not find it :-). I will try to see if this will work for us. Rohit -Original Message- From: Joel Bernstein [mailto:joels...@gmail.com] Sent: Monday, June 12, 2017 1:01 PM To: solr-user@lucene.apache.org Subject: Re: Parallel API interface into

RE: DIH issue with streaming xml file

2017-06-12 Thread Miller, William K - Norman, OK - Contractor
Thank you for your response. I will look into this link. Also, sorry I did not specify the file type. I am working with XML files. ~~~ William Kevin Miller ECS Federal, Inc. USPS/MTSC (405) 573-2158 -Original Message- From: Alexandre Rafalovitch

Re: Use of blanks in context filter field with AnalyzingInfixLookupFactory

2017-06-12 Thread Alfonso Muñoz-Pomer Fuentes
suggestAnalyzerFieldType and queryAnalyzerFieldType are related to the field parameter (in my case property_value), not to the contextField. Moreover, the change you suggest makes AnalyzingInfixLookupFactory always return 0 results (something that’s not discussed in the reference guide and has

Re: DIH issue with streaming xml file

2017-06-12 Thread Alexandre Rafalovitch
Solr 6.5.1 DIH setup has - somewhat broken - RSS example (redone as ATOM example in 6.6) that shows how to get stuff from https URL. You can see the atom example here: https://github.com/apache/lucene-solr/blob/releases/lucene-solr/6.6.0/solr/example/example-DIH/solr/atom/conf/atom-data-config.xml

RE: DIH issue with streaming xml file

2017-06-12 Thread Miller, William K - Norman, OK - Contractor
Thank you for your response. That is the issue that I am having. I cannot figure out how to get the list of files from the remote server. I have tried changing the parent Entity Processor to the XPathEntityProcessor and the baseDir to a url using https. This did not work as it was looking

Re: Use of blanks in context filter field with AnalyzingInfixLookupFactory

2017-06-12 Thread Susheel Kumar
Change below type to string and try... text_en text_en Thanks, Susheel On Mon, Jun 12, 2017 at 1:28 PM, Alfonso Muñoz-Pomer Fuentes < amu...@ebi.ac.uk> wrote: > Hi all, > > I was wondering if anybody has experience setting up a suggester with > filtering using a context field that has

Re: Parallel API interface into SOLR

2017-06-12 Thread Joel Bernstein
You can do what you're trying to do by using the SolrStream but it's complex and not documented. Here is the basic code for having multiple clients hitting the same shard: *On client 1:* SolrClientCache cache = new SolrClientCache(); StreamContext context = new StreamContext();

Re: DIH issue with streaming xml file

2017-06-12 Thread Alexandre Rafalovitch
How do you get a list of URLs for the files on the remote server? That's probably the first issue. Once you have the URLs in an outside entity or two, you can feed them one by one into the inner entity. Regards, Alex. http://www.solr-start.com/ - Resources for Solr users, new and

Use of blanks in context filter field with AnalyzingInfixLookupFactory

2017-06-12 Thread Alfonso Muñoz-Pomer Fuentes
Hi all, I was wondering if anybody has experience setting up a suggester with filtering using a context field that has blanks. Currently this is what I have in solr_config.xml: AnalyzingInfixLookupFactory DocumentDictionaryFactory species text_en text_en false

RE: Parallel API interface into SOLR

2017-06-12 Thread Rohit Jain
Erick, I think so, although I may have overlooked something. The idea is that we would make a request to the API from a single client but expect multiple streams of results to be returned in parallel to multiple parallel processes that we have set up to receive those results from SOLR. Do

Re: Phrase Query only forward direction

2017-06-12 Thread Erick Erickson
Complex phrase also has an inorder flag that I think you're looking for here. Best, Erick On Mon, Jun 12, 2017 at 7:16 AM, Erik Hatcher wrote: > Understood. If you need ordered, “sloppy” (some distance) phrases, you > could OR in a {!complexphrase} query. > >

Re: Parallel API interface into SOLR

2017-06-12 Thread Erick Erickson
Have you looked at Streaming Aggregation/Streaming Expressions/Parallel SQL etc? Best, Erick On Mon, Jun 12, 2017 at 9:24 AM, Rohit Jain wrote: > Hi folks, > > We have a solution where we would like to connect to SOLR via an API, submit > a query, and then pre-process the

Re: _version_ as LongPointField returns error

2017-06-12 Thread Chris Hostetter
just replying to some comments/discussion in general rather then individual msgs/sentences.. * uninversion/FieldCache of *singlevalued* Points fields was fixed in SOLR-10472 * currently a bad idea to use indexed="true" Points for _version_ due to SOLR-10832 * AFAICT it's a good idea (in

Re: Proximity Search using edismax parser.

2017-06-12 Thread abhi Abhishek
Thanks for the suggestions Erik and Vrindavda, i was trying to understand how does the above query work when we have slop set to 10. the debug output of the SOLR Query gave the terms which were being looked up but the transpositions done to look up the search wasn't exposed. i found following

Re: _version_ as LongPointField returns error

2017-06-12 Thread Yonik Seeley
On Mon, Jun 12, 2017 at 12:24 PM, Shawn Feldman wrote: > Why do you need doc values though? i'm never going to sort by version Solr needs a quick lookup from docid->_version_ If you don't have docValues, Solr tries to create an in-memory version (via the FieldCache).

Re: _version_ as LongPointField returns error

2017-06-12 Thread Shawn Feldman
Why do you need doc values though? i'm never going to sort by version On Mon, Jun 12, 2017 at 10:13 AM Yonik Seeley wrote: > I think the _version_ field should be > - indexed="false" > - stored="false" > - docValues="true" > > -Yonik > > > On Mon, Jun 12, 2017 at 12:08

Parallel API interface into SOLR

2017-06-12 Thread Rohit Jain
Hi folks, We have a solution where we would like to connect to SOLR via an API, submit a query, and then pre-process the results before we return the results to our users. However, in some cases, it is possible that the results being returned by SOLR, in a large distributed cluster

Re: _version_ as LongPointField returns error

2017-06-12 Thread Yonik Seeley
I think the _version_ field should be - indexed="false" - stored="false" - docValues="true" -Yonik On Mon, Jun 12, 2017 at 12:08 PM, Shawn Feldman wrote: > I changed all my TrieLong Fields to Point fields. _version_ always returns > an error unless i turn on

Re: _version_ as LongPointField returns error

2017-06-12 Thread Shawn Feldman
logged this ticket https://issues.apache.org/jira/browse/SOLR-10872 On Mon, Jun 12, 2017 at 10:08 AM Shawn Feldman wrote: > I changed all my TrieLong Fields to Point fields. _version_ always > returns an error unless i turn on docvalues > > > > > Getting this

_version_ as LongPointField returns error

2017-06-12 Thread Shawn Feldman
I changed all my TrieLong Fields to Point fields. _version_ always returns an error unless i turn on docvalues Getting this error when i index. Any ideas? Remote error message: Point fields can't use FieldCache. Use docValues=true for field: _version_ solr2_1|at

Re: Phrase Query only forward direction

2017-06-12 Thread Erik Hatcher
Understood. If you need ordered, “sloppy” (some distance) phrases, you could OR in a {!complexphrase} query. https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-ComplexPhraseQueryParser

Re: Phrase Query only forward direction

2017-06-12 Thread Aman Deep Singh
Yes Erik I can use ps=0 but, my problem is that I want phrase which have same sequence and they can be present with in some distance E.g. If I have document masitha xyz 12345 I want that to be boosted since the sequence is in order .That's why I have use ps=5 Thanks, Aman Deep Singh On

DIH issue with streaming xml file

2017-06-12 Thread Miller, William K - Norman, OK - Contractor
I am using Solr 6.5.1 and working on importing xml files using the DataImportHandler. I am wanting to get the files from a remote server, but I am dealing with multiple xml files in multiple folders. I am using a nested entity in my dataConfig. Below is an example of how I have my dataConfig

Re: Phrase Query only forward direction

2017-06-12 Thread Erik Hatcher
Using ps=5 causes the phrase matching to be unordered matching. You’ll have to set ps=0, if using edismax, to get exact order phrase matches. Erik > On Jun 12, 2017, at 1:09 AM, Aman Deep Singh > wrote: > > Hi, > I'm using a phrase query ,but it was

Re: Proximity Search using edismax parser.

2017-06-12 Thread Erik Hatcher
Adding =true to your search requests will give you the parsing details, so you can see how edismax interprets the query string and parameters to turn it into the underlying dismax and phrase queries. Erik > On Jun 12, 2017, at 3:22 AM, abhi Abhishek wrote: > > Hi

Re: Proximity Search using edismax parser.

2017-06-12 Thread vrindavda
hi you can refer : http://yonik.com/solr/query-syntax/ -- View this message in context: http://lucene.472066.n3.nabble.com/Proximity-Search-using-edismax-parser-tp4340115p4340133.html Sent from the Solr - User mailing list archive at Nabble.com.

Proximity Search using edismax parser.

2017-06-12 Thread abhi Abhishek
Hi All, How does proximity Query work in SOLR. Example if i am running a query like below, for the field containing the text “India registered a historical test match win against the arch rival Pakistan here in Lords, England on Sunday” Query: “Test match India Pakistan” ~ 10

Re: Searching under multiple field

2017-06-12 Thread Zheng Lin Edwin Yeo
Hi, I found that this edismax query works. http://localhost:8983/solr/collection1/select?defType=edismax=*test* AND field1_tc:"Main"* =field1_s field2_s field3_s field4_s Regards, Edwin On 12 June 2017 at 11:20, Zheng Lin Edwin Yeo wrote: > Hi Ravi, > > Thanks for your