Re: Fwd: Solr dynamic field blowing up the index size

2017-02-21 Thread Pratik Patel
cene-and-solr/#d0e71 Thanks, Pratik On Tue, Feb 21, 2017 at 12:03 PM, Pratik Patel <pra...@semandex.net> wrote: > I am using the schema from solr 5 which does not have any field with > docValues enabled.In fact to ensure that everything is same as solr 5 > (except the breaking changes)

How to figure out whether stopwords are being indexed or not

2017-02-21 Thread Pratik Patel
I have a field type in schema which has been applied stopwords list. I have verified that path of stopwords file is correct and it is being loaded fine in solr admin UI. When I analyse these fields using "Analysis" tab of the solr admin UI, I can see that stopwords are being filtered out. However,

Fwd: Solr dynamic field blowing up the index size

2017-02-21 Thread Pratik Patel
Here is the same question in stackOverflow for better format. http://stackoverflow.com/questions/42370231/solr- dynamic-field-blowing-up-the-index-size Recently, I upgraded from solr 5.0 to solr 6.4.1. I can run my app fine but the problem is that index size with solr 6 is way too large. In solr

Re: Fwd: Solr dynamic field blowing up the index size

2017-02-21 Thread Pratik Patel
he data directories to check what index file extensions > contribute most to the difference? That could give a hint. > > Regards, > Alex > > On 21 Feb 2017 9:47 AM, "Pratik Patel" <pra...@semandex.net> wrote: > > > Here is the same question in sta

Re: Fwd: Solr dynamic field blowing up the index size

2017-02-21 Thread Pratik Patel
rote: > > Correct me if I'm wrong, but heavy use of doc values should actually blow > > up the size of your index considerably if they are in fields that get > sent > > a lot of data. > > > > On Tue, Feb 21, 2017 at 10:50 AM, Pratik Patel <pra...@semandex.net> &

Re: How to figure out whether stopwords are being indexed or not

2017-02-22 Thread Pratik Patel
t;erickerick...@gmail.com> wrote: > That's not what I'm looking for. Way down near the end there should be > an entry like > "parsed_query toString" > > This line is pretty suspicious: 82, "params":{ "q":"Description_note:* > and *" > &

Re: How to figure out whether stopwords are being indexed or not

2017-02-22 Thread Pratik Patel
ds, >Alex. > > > http://www.solr-start.com/ - Resources for Solr users, new and experienced > > > On 22 February 2017 at 12:02, Pratik Patel <pra...@semandex.net> wrote: > > Asterisks were not for formatting, I was trying to use a wildcard > operator. &g

Re: How to figure out whether stopwords are being indexed or not

2017-02-22 Thread Pratik Patel
erick...@gmail.com> wrote: > Attach =query to your query and look at the parsed query that's > returned. > That'll tell you what was searched at least. > > You can also use the TermsComponent to examine terms in a field directly. > > Best, > Erick > > On Tue, Fe

How to implement nested streaming expressions in Java using solrj

2017-03-15 Thread Pratik Patel
I am trying to write a streaming expression in solrj. Following is the query that I want to implement in Java. having( > gatherNodes(collection1, > search(collection1,q="*:*",fl="conceptid",sort="conceptid > asc",fq=storeid:"524efcfd505637004b1f6f24",fq=tags:"Company",fq=tags:"Prospects2", >

Re: Using fetch function with streaming expression

2017-03-15 Thread Pratik Patel
> http://joelsolr.blogspot.com/ > > On Tue, Mar 14, 2017 at 7:53 PM, Pratik Patel <pra...@semandex.net> wrote: > > > Wow, this is interesting! Is it going to be a new addition to solr or is > it > > already available cause I can not find it in documentation? I

Re: Using fetch function with streaming expression

2017-03-14 Thread Pratik Patel
rsal="true", > > scatter="leaves", > count(*)), > gt(count(*),1))), > fl="concept_name", > on="ancestors=conceptid") > > Joel Ber

BooleanEvaluator inside 'having' function of a streaming expression

2017-03-13 Thread Pratik Patel
Hi, I am trying to write a streaming expression with 'having' function in it. Following is my simple query. having( >search(collection1,q="*:*",fl="storeid",sort="storeid > asc",fq=tags:"Company"), >eq(storeid,524efcfd505637004b1f6f24) > ) Here, storeid is a field of type "string" in

Using fetch function with streaming expression

2017-03-14 Thread Pratik Patel
I have two types of documents in my index. eventLink and concepttData. eventLink { ancestors:[,] } conceptData-{ id:id1, conceptid, concept_name . } Both are in same collection. In my query, I am doing a gatherNodes query wrapped in some other function and ultimately I am getting a

Using multi valued field in solr cloud Graph Traversal Query

2017-03-10 Thread Pratik Patel
I am trying to do a graph traversal query using gatherNode function. I am seeding a streaming expression to get some documents and then I am trying to map their ids(conceptid) to a multi valued field "participantIds" and gather nodes. Here is the query I am doing. gatherNodes(collection1, >

Re: BooleanEvaluator inside 'having' function of a streaming expression

2017-03-13 Thread Pratik Patel
, which has string > comparisons. > > In the expression you're working with it would be much more performant > though to filter the query on the storeid. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Mon, Mar 13, 2017 at 1:06 PM, Pratik Patel <pra...@se

Re: BooleanEvaluator inside 'having' function of a streaming expression

2017-03-13 Thread Pratik Patel
it's not a stable version* On Mon, Mar 13, 2017 at 1:34 PM, Pratik Patel <pra...@semandex.net> wrote: > Thanks Joel! This is just a simplified sample query that I created to > better demonstrate the issue. I am not sure whether I want to upgrade to > solr 6.5 as only de

Re: Using fetch function with streaming expression

2017-03-14 Thread Pratik Patel
e concept names for ancestors? > > Can you explain a little more about the use case? > > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Tue, Mar 14, 2017 at 11:08 AM, Pratik Patel <pra...@semandex.net> > wrote: > > > I have two types of d

Streaming expressions and Jetty Host

2017-07-09 Thread Pratik Patel
Hi Everyone, We are running solr 6.4.1 in cloud mode on CentOS production server. Currently, we are using the embedded zookeeper. It is a simple set up with one collection and one shard. By default, Jetty server binds to all interfaces which is not safe so we have changed the bin/solr script. We

Limit for facet function of Streaming Expressions in solr cloud

2017-06-29 Thread Pratik Patel
Hey Everyone, This is about the facet function of Streaming Expression. Is there any way to set limit for number of facets to infinite? The *bucketSizeLimit parameter *seems to accept only those numbers which are greater than 0. Thanks, Pratik

Re: Limit for facet function of Streaming Expressions in solr cloud

2017-06-29 Thread Pratik Patel
ow unlimited. > > Joel Bernstein > http://joelsolr.blogspot.com/ > > On Thu, Jun 29, 2017 at 10:06 AM, Pratik Patel <pra...@semandex.net> > wrote: > > > Hey Everyone, > > > > This is about the facet function of Streaming Expression. Is there any > way &g

Solr Carrot Clustering query with specific label in it

2017-05-16 Thread Pratik Patel
Hi, When we do a Carrot Clustering query on a set of solr documents we get back following type of response. DDR 3.9599865057283354 TWINX2048-3200PRO VS1GB400C3 VDBDB1A16 iPod

Streaming Expressions : rollup function returning results with duplicate tuples

2017-06-22 Thread Pratik Patel
Hi, I have a streaming expression which uses rollup function. My understanding is that rollup takes an incoming stream and aggregates over given buckets. However, with following query the result contains duplicate tuples. Following is the streaming expression. rollup( fetch(

Re: Streaming Expressions : rollup function returning results with duplicate tuples

2017-06-22 Thread Pratik Patel
ver" fields. > > > > Joel Bernstein > > http://joelsolr.blogspot.com/ > > > > On Thu, Jun 22, 2017 at 2:49 PM, Pratik Patel <pra...@semandex.net> > wrote: > > > >> Hi, > >> > >> I have a streaming expression which uses rollup

Re: Solr not preserving milliseconds precision for zero milliseconds

2017-10-06 Thread Pratik Patel
Thanks for the clarification. I'll change my code to accommodate this behavior. On Thu, Oct 5, 2017 at 6:24 PM, Chris Hostetter wrote: > : > "startTime":"2013-02-10T18:36:07.000Z" > ... > : handler. It gets added successfully but when I retrieve this

Solr not preserving milliseconds precision for zero milliseconds

2017-10-05 Thread Pratik Patel
Hello Everyone, Say I have a document like one below. > { > "id":"test", > "startTime":"2013-02-10T18:36:07.000Z" > } I add this document to solr index using the admin UI and "update" request handler. It gets added successfully but when I retrieve this document back using "id"

Re: Streaming Expression - cartesianProduct

2017-11-01 Thread Pratik Patel
Roll up needs documents to be sorted by the "over" field. Check this for more details http://lucene.472066.n3.nabble.com/Streaming-Expressions-rollup-function-returning-results-with-duplicate-tuples-td4342398.html On Wed, Nov 1, 2017 at 3:41 PM, Kojo wrote: > Wrap

Re: Graph Traversal

2017-10-30 Thread Pratik Patel
on Solr, Graph etc. > This solution looks like normalizing data like a m2m table in sql database, > is it? > > > > 2017-10-29 21:51 GMT-02:00 Pratik Patel <pra...@semandex.net>: > > > For now, you can probably use Cartesian function of Streaming Expressions > > which

Re: Graph Traversal

2017-10-30 Thread Pratik Patel
in a new > Solr cloud collection? Or just use this tuples in query time? > > 2017-10-30 11:00 GMT-02:00 Pratik Patel <pra...@semandex.net>: > > > By including Cartesian function in Streaming Expression pipeline, you can > > convert a tuple having one multivalued field in

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

Re: Getting more documents from resultsSet

2018-05-18 Thread Pratik Patel
Using cursor marker might help as explained in this documentation https://lucene.apache.org/solr/guide/6_6/pagination-of-results.html On Fri, May 18, 2018 at 4:13 PM, Deepak Goel wrote: > I wonder if in-memory-filesystem would help... > > On Sat, 19 May 2018, 01:03 Erick

Java library for building Streaming Expressions

2018-06-27 Thread Pratik Patel
Hello Everyone, Is there any java library for building Streaming Expressions? Currently, I am using solr's java client and building Streaming Expressions as follows. StreamFactory factory = new StreamFactory().withCollectionZkHost( collName, zkHost )

String concatenation in Streaming Expressions

2018-06-27 Thread Pratik Patel
Hello, Is there a function which can be used in Streaming Expressions to concatenate two strings? I want to use it just like add(1,2) in a Streaming Expression. Essentially, I want to achieve something as follows. select( search(..), conceptid as foo, storeid as bar

Re: String concatenation in Streaming Expressions

2018-06-27 Thread Pratik Patel
va/org/apache/solr/client/solrj/io/eval/AppendEvaluator.java < > https://github.com/apache/lucene-solr/blob/master/solr/ > solrj/src/java/org/apache/solr/client/solrj/io/eval/AppendEvaluator.java> > >> > >> > >>> On Jun 27, 2018, at 12:58 PM, Pratik P

Re: String concatenation in Streaming Expressions

2018-06-27 Thread Pratik Patel
catOperationTest.java <https://github.com/apache/ > lucene-solr/blob/branch_6_4/solr/solrj/src/test/org/ > apache/solr/client/solrj/io/stream/ops/ConcatOperationTest.java> > > > > On Jun 27, 2018, at 1:27 PM, Aroop Ganguly > wrote: > > > > It should, but

Re: Applying streaming expression as a filter in graph traversal expression (gatherNodes)

2018-06-22 Thread Pratik Patel
al improvement in performance, I was curious. Please let me know if you feel there is a better approach. Thanks - Pratik On Thu, Jun 21, 2018 at 7:05 PM, Joel Bernstein wrote: > Currently the gatherNodes expression can only be filtered by a traditional > filter query. I'm curious abou

Applying streaming expression as a filter in graph traversal expression (gatherNodes)

2018-06-20 Thread Pratik Patel
We can limit the scope of graph traversal by applying some filter along the way as follows. gatherNodes(emails, walk="john...@apache.org->from", fq="body:(solr rocks)", gather="to") Is it possible to replace "body:(solr rocks)" by some streaming expression

Best Practice about solr cloud schema

2018-02-07 Thread Pratik Patel
Hello all, I have added some fields to default managed-schema file. I was wondering if it is safe to take default managed-schema file as is and add your own fields to it in production. What is the best practice for this? As I understand, it should be safe to use default schema as base if

Re: Best Practice about solr cloud schema

2018-02-07 Thread Pratik Patel
actually easier, though, to just start all over. > > BTW, do not delete any field that begins and ends with an underscore, > e.g. _version_ unless you know exactly what the consequences are > > Best, > Erick > > On Wed, Feb 7, 2018 at 2:59 PM, Pratik Patel <pra...@semandex.n

Re: Index size increases disproportionately to size of added field when indexed=false

2018-02-14 Thread Pratik Patel
I had a similar issue with index size after upgrading to version 6.4.1 from 5.x. The issue for me was that the field which caused index size to be increased disproportionately had a field type("text_general") for which default value of omitNorms was not true. Turning it on explicitly on field

Re: Index size increases disproportionately to size of added field when indexed=false

2018-02-14 Thread Pratik Patel
You are right, in my case this field type was applied to many text fields. These includes many copy fields and dynamic fields as well. In my case, only specifying omitNorms=true for field type "text_general" fixed the issue. I didn't do anything else or had any other bug. On Wed, Feb 14, 2018 at

Re: Best Practice about solr cloud schema

2018-02-08 Thread Pratik Patel
; > I essentially always test this out on a local, stand-alone instance > until I can index a few documents and query them, it's faster than > always having to remember to move them to ZooKeeper > > Best, > Erick > > On Wed, Feb 7, 2018 at 7:14 PM, Pratik Pat

Re: Index size increases disproportionately to size of added field when indexed=false

2018-02-15 Thread Pratik Patel
@Alessandro I will see if I can reproduce the same issue just by turning off omitNorms on field type. I'll open another mail thread if required. Thanks. On Thu, Feb 15, 2018 at 6:12 AM, Howe, David wrote: > > Hi Alessandro, > > Some interesting testing today that

Semantic Knowledge Graph query using SolrJ

2018-08-14 Thread Pratik Patel
I am trying to use Semantic Knowledge Graph in my java based application. I have a Semantic Knowledge Graph query which works fine if I trigger it through browser using restlet client. Following is the query. { "queries": [ "foo:\"5a6127a7234e76473a816f1c\"" ], "compare": [ {

Question on query time boosting

2018-08-23 Thread Pratik Patel
Hello All, I am trying to understand how exactly query time boosting works in solr. Primarily, I want to understand if absolute boost values matter or is it just the relative difference between various boost values which decides scoring. Let's take following two queries for example. // case1: q

Named entity extraction/correlation using Semantic Knowledge Graph

2018-10-17 Thread Pratik Patel
Hi Everyone, I have been using Semantic Knowledge Graph for document summarization, term correlation and document similarity. It has produced very good results after appropriate tuning. I was wondering if there is any way the Semantic Knowledge Graph can be used to for Named Entity Extraction

Re: Named entity extraction/correlation using Semantic Knowledge Graph

2018-10-18 Thread Pratik Patel
pecifically you invisage. As in, is > there training corpus, are you looking at NGram techniques, etc. > > Regards, >Alex. > On Wed, 17 Oct 2018 at 13:40, Pratik Patel wrote: > > > > Hi Everyone, > > > > I have been using Semantic Knowledge Graph for document summarization,

Extracting important multi term phrases from the text

2018-11-15 Thread Pratik Patel
Hello Everyone, Standard way of tokenizing in solr would divide the text by white space in solr. Is there a way by which we can index multi-term phrases like "Machine Learning" instead of "Machine", "Learning"? Is it possible to create a specific field type for such phrases which has its own

Re: Extracting important multi term phrases from the text

2018-11-15 Thread Pratik Patel
Hi Markus, Thanks for the reply. I tried using ShingleFilter and it seems to be working. However, I am hitting an issue when it is used with StopWordFilter. StopWordFilter leaves an underscore "_" for removed words and it kind of screws up the data in index. I tried setting

Get MLT Interesting Terms for a set of documents corresponding to the query specified

2019-01-20 Thread Pratik Patel
Hi Everyone! I am trying to use MLT request handler. My query matches more than one documents but the response always seems to pick up the first document and interestingTerms also seems to be corresponding to that single document only. What I am expecting is that if my query matches multiple

Re: Get MLT Interesting Terms for a set of documents corresponding to the query specified

2019-01-21 Thread Pratik Patel
cument. Please remove extra > rows and try. > > On Mon, Jan 21, 2019, 08:44 Pratik Patel > > Hi Everyone! > > > > I am trying to use MLT request handler. My query matches more than one > > documents but the response always seems to pick up the first docum

Re: Get MLT Interesting Terms for a set of documents corresponding to the query specified

2019-01-22 Thread Pratik Patel
Joel Bernstein > http://joelsolr.blogspot.com/ > > > On Mon, Jan 21, 2019 at 3:02 PM Pratik Patel wrote: > > > Aman, > > > > Thanks for the reply! > > > > I have tried with corrected query but it doesn't solve the problem. also, > > my tags filter matches multiple

Re: Extracting important multi term phrases from the text

2018-11-20 Thread Pratik Patel
alyzers-common/org/apache/lucene/analysis/shingle/ShingleFilterFactory.html > . I'll try to fix that later (SOLR-12996). > > Regards, >Alex. > On Fri, 16 Nov 2018 at 10:44, Pratik Patel wrote: > > > > @Markus @Walter, @Alexandre is right. The culprit was not StopWord

Re: Extracting important multi term phrases from the text

2018-11-16 Thread Pratik Patel
ing? significantTerms? > > On Thu, Nov 15, 2018 at 7:09 PM Alexandre Rafalovitch > wrote: > > > I think the underscore actually comes from the Shingles (parameter > > fillerToken). Have you tried setting it to empty string? > > > > Regards, > >Alex. &

Re: Using solr graph to traverse N relationships

2019-03-13 Thread Pratik Patel
Problem #1 can probably be solved by using "fetch" function. ( https://lucene.apache.org/solr/guide/6_6/stream-decorators.html#fetch) Problem #2 and #3 can be solved by normalizing the graph connections and by applying cartesianProduct on multi valued field, as described here.

SolrJ : Inserting Bean object containing different types of Child documents

2019-04-16 Thread Pratik Patel
Hello Everyone, I have a Bean object which can have child documents of classes Child_type1 and Child_type2. When I try to index this document, I get an error message "Doc cannot have more than one Field with child=true". I looked at the mailing list but couldn't find any solution for this. Any

Solr test framework not able to upload configuration to zk and fails with KeeperException

2019-06-04 Thread Pratik Patel
Hello Everyone, I am trying to run a simple unit test using solr test framework. At this point, all I am trying to achieve is to be able to upload some configuration and create a collection using solr test framework. Following is the simple code which I am trying to run. private static final

Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-05 Thread Pratik Patel
Hello Everyone, I am trying to write some unit tests for solr queries which requires some data in specific state. There is a way to load this data through json files but the problem is that the required data needs to have parent-child blocks to be present. Because of this, I would prefer if there

Re: Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-06 Thread Pratik Patel
done differently. > > Regards, > Alex > > On Wed, Jun 5, 2019, 6:29 PM Pratik Patel, wrote: > > > Hello Everyone, > > > > I am trying to write some unit tests for solr queries which requires some > > data in specific state. There is a way to load this da

Re: Solr test framework not able to upload configuration to zk and fails with KeeperException

2019-06-06 Thread Pratik Patel
llection” without the configfiles, but it will > obviously fail when try to use it. > > > On the surface, this znode already exists: > > /solr/configs/collection2 > > So it looks like somehow you're > > > On Jun 4, 2019, at 12:29 PM, Pratik Patel pra...@semandex.net>&g

How to increase maximum size of files allowed in configuration for MiniSolrCloudCluster

2019-06-10 Thread Pratik Patel
Hi, I am trying to upload a configuration to "MiniSolrCloudCluster" in my unit test. This configuration has some binary files for NLP related functionality. Some of these binary files are bigger than 5 MB. If I try to upload configuration with these files then it doesn't work. I can set up the

Re: Streaming expression function which can give parent document along with its child documents ?

2019-06-10 Thread Pratik Patel
If your children documents have a link to parent documents (like parent id or something) then you can use graph traversal to do this. On Mon, Jun 10, 2019 at 8:01 AM Jai Jamba wrote: > Can anyone help me in this ? > > > > -- > Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Loading pre created index files into MiniSolrCloudCluster of test framework

2019-06-10 Thread Pratik Patel
ata in new collection. I see that new collection is created but it seems to be without any data. Am I missing something here? Any idea what could be the cause of this? Thanks! Pratik On Thu, Jun 6, 2019 at 11:18 AM Pratik Patel wrote: > Thanks for the reply Alexandre, only special thi

Re: How to increase maximum size of files allowed in configuration for MiniSolrCloudCluster

2019-06-11 Thread Pratik Patel
a little bit larger than your largest > file). > If possible you can try to avoid storing the NLP / ML models in Solr but > provide them on a share or similar where all Solr nodes have access to. > > > Am 11.06.2019 um 00:32 schrieb Pratik Patel : > > > > Hi, > &

Writing unit tests to test complex solr queries

2019-05-10 Thread Pratik Patel
Hello Everyone, I want to write unit tests for some solr queries which are being triggered through java code. These queries includes complex streaming expressions and faceting queries which requires large number of documents to be present in solr index. I can not create and push so many documents

Re: Writing unit tests to test complex solr queries

2019-05-16 Thread Pratik Patel
3A__github.com_apache_lucene-2Dsolr_blob_master_solr_solrj_src_test_org_apache_solr_client_solrj_io_stream_StreamExpressionTest.java=DwIBaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=lUsTzFRk0CX38HvagQ0wd52D67dA0fx_D6M6F3LHzAU=9tFliF4KA1tiG2lGmDJWO34hyq9-Sz1inAxRPVKkz78=KjveDzxzQAKRmvzPYk2y

Pagination with streaming expressions

2019-05-01 Thread Pratik Patel
Hello Everyone, Is there a way to paginate the results of Streaming Expression? Let's say I have a simple gatherNodes function which has count operation at the end of it. I can sort by the count fine but now I would like to be able to select specific sub set of result based on pagination

Re: Bug in scoreNodes function of streaming expressions?

2019-07-02 Thread Pratik Patel
Great, thanks! On Tue, Jul 2, 2019 at 6:37 AM Joel Bernstein wrote: > Ok, that sounds like a bug. I can create a ticket for this. > > On Mon, Jul 1, 2019 at 5:57 PM Pratik Patel wrote: > > > I think the problem was that my streaming expression was always returning > &g

Re: Bug in scoreNodes function of streaming expressions?

2019-07-02 Thread Pratik Patel
uest = new QueryRequest(paramsLoc, SolrRequest.METHOD.POST); Is this also a bug? On Tue, Jul 2, 2019 at 10:17 AM Pratik Patel wrote: > Great, thanks! > > On Tue, Jul 2, 2019 at 6:37 AM Joel Bernstein wrote: > >> Ok, that sounds like a bug. I can create a ticket for this. >>

Bug in scoreNodes function of streaming expressions?

2019-07-01 Thread Pratik Patel
Hello Everyone, I am trying to execute following streaming expression with "scoreNodes" function in it. This is taken from the documentation. scoreNodes(top(n="50", sort="count(*) desc", nodes(baskets, random(baskets,

Re: Bug in scoreNodes function of streaming expressions?

2019-07-01 Thread Pratik Patel
I think the problem was that my streaming expression was always returning just one node. When I added more data so that I can have more than one node, I started seeing the result. On Mon, Jul 1, 2019 at 11:21 AM Pratik Patel wrote: > Hello Everyone, > > I am trying to execute

Best way to retrieve parent documents with children using getBeans method?

2019-08-12 Thread Pratik Patel
Hello Everyone, We use SolrJ with POJOs to index documents into solr. If a POJO has a field annotated with @child then SolrJ automatically adds those objects as children of the POJO. This works fine and indexing is done properly. However, when I retrieve the same document through same POJO using

Re: The Visual Guide to Streaming Expressions and Math Expressions

2019-10-16 Thread Pratik Patel
Hi Joel, Looks like this is going to be very helpful, thank you! I am wondering whether the visualizations are generated through third party library or is it something which would be part of solr distribution?

How to change config set for some collection

2019-11-20 Thread Pratik Patel
Hello Everyone, Let's say I have a collection called "collection1" which uses config set "config_set_1". Now, using "upconfig" command, I upload a new configuration called "config_set_2". How can I make "collection1" use "config_set_2" instead of "config_set_1"? I know that if I upload new

Re: How to change config set for some collection

2019-11-20 Thread Pratik Patel
Thanks Shawn! This is what I needed. On Wed, Nov 20, 2019 at 3:59 PM Shawn Heisey wrote: > On 11/20/2019 1:34 PM, Pratik Patel wrote: > > Let's say I have a collection called "collection1" which uses config set > > "config_set_1". > > Now, using "u

Re: Bug in scoreNodes function of streaming expressions?

2020-01-29 Thread Pratik Patel
; > http://joelsolr.blogspot.com/ > > > > > > On Tue, Jan 28, 2020 at 11:52 AM pratik@semandex > > wrote: > > > >> Joel Bernstein wrote > >> > Ok, that sounds like a bug. I can create a ticket for this. > >> > > >> > On

Solr Analyzer : Filter to drop tokens based on some logic which needs access to adjacent tokens

2020-02-07 Thread Pratik Patel
Hello Everyone, Let's say I have an analyzer which has following token stream as an output. *token stream : [], a, ab, [], c, [], d, de, def .* Now let's say I want to add another filter which will drop a certain tokens based on whether adjacent token on the right side is [] or some string.

Re: Solr Analyzer : Filter to drop tokens based on some logic which needs access to adjacent tokens

2020-02-10 Thread Pratik Patel
er and you can implement any logic you want: you consume > three tokens and emit tokens based on adjacent tokens. > > HTH, > Emir > -- > Monitoring - Log Management - Alerting - Anomaly Detection > Solr & Elasticsearch Consulting Support Training - http://sematext.com/ >

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Pratik Patel
before, so there may be > something I am missing myself. > > > On Thu, 17 Sep 2020 at 12:46, Pratik Patel wrote: > > > > Thanks for your reply Alexandre. > > > > I have "_root_" and "_nest_path_" fields in my schema but not > &

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-17 Thread Pratik Patel
d also include _nest_path and > _nest_parent_. Your particular exception seems to be triggering > something (maybe a bug) related to - possibly - missing _nest_path_ > field. > > See: > https://lucene.apache.org/solr/guide/8_5/indexing-nested-documents.html#indexing-nested-documents >

NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-16 Thread Pratik Patel
Hello Everyone, I am trying to update a field of a child document using atomic updates feature. I am using solr and solrJ version 8.5.0 I have ensured that my schema satisfies the conditions for atomic updates and I am able to do atomic updates on normal documents but with nested child

Re: NPE Issue with atomic update to nested document or child document through SolrJ

2020-09-16 Thread Pratik Patel
etFieldFromHierarchy(SolrInputDocument > completeHierarchy, String fieldPath) { > final List docPaths = > StrUtils.splitSmart(fieldPath.substring(1), '/'); > .. > } Any idea what's wrong here? Thanks On Wed, Sep 16, 2020 at 1