Re: Solr's suggester results

2015-06-15 Thread Alessandro Benedetti
ehehe Edwin, I think you should read again the document I linked time ago : http://lucidworks.com/blog/solr-suggester/ The suggester you used is not meant to provide infix suggestions. The fuzzy suggester is working on a fuzzy basis , with the *starting* terms of a field content. What you are lo

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
2015-06-12 17:53 GMT+01:00 JACK : > As explained above, actually I have around 10 lack data not 5 row. This is not changing how the edismax and norms in Solr work. So it's not a point. > It's not > about synonyms . When I checked in the FAQ page of Solr wiki, it is found > that if we need to ge

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
01:00 Alessandro Benedetti : > > > 2015-06-12 17:53 GMT+01:00 JACK : > >> As explained above, actually I have around 10 lack data not 5 row. > > This is not changing how the edismax and norms in Solr work. So it's not a > point. > > >> It's not >>

Re: Solr5 search not displaying results based on relevancy

2015-06-15 Thread Alessandro Benedetti
I would really suggest you to take a look to the basics of Lucene scoring. As it's evident you have not a clear idea of how the scoring is working. http://www.solrtutorial.com/solr-search-relevancy.html ( simple but old) http://lucene.apache.org/core/5_2_0/core/index.html After that, take always

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
JACK : > Hi Alessandro Benedetti, > The query is > > http://localhost:8983/solr/MYDBCORE/select?q=product_name:(laptop+bag)&wt=json&indent=true > > 1.Dell Inspiron 3542 Laptop (Black) without Laptop Bag > 2.Dell 3542 15-inch Laptop with Laptop Bag by Dell > 3.De

Re: Solr Exact match boost Reduce the results

2015-06-15 Thread Alessandro Benedetti
duced. Maybe a screenshot will be more readable. Cheers 2015-06-15 13:18 GMT+01:00 JACK : > Hi Alessandro Benedetti, > Its my Analysis value index > > > WT > > text > raw_bytes > start > end > positionLength > type > position > > laptop > [6c 61 70 74 6

Re: lucene vs Solr Indexing on Sample data

2015-06-15 Thread Alessandro Benedetti
Actually I can see a problem in your question… Lucene and Solr are not competitor technologies. Solr is a Search Server that internally uses the Lucene library and offers easy to use configuration and REST API. Lucene is a library that implements tons of search algorithms and features. You can see

Re: Parent/Child (Nested Document) Faceting

2015-06-15 Thread Alessandro Benedetti
Hi Yonik, I find the syntax quite expressive, only one question : *1*) $ curl http://localhost:8983/solr/demo/query -d ' q=author_s:yonik&fl=id,comment_t& json.facet={ genres : { type: terms, field: cat_s, domain: { blockParent : "type_s:book" } } }' I read this : Give me all the

Re: Solr's suggester results

2015-06-16 Thread Alessandro Benedetti
nd the documentation linked ! Related the excessive dimensions of tokens. This is weird, what are you trying to autocomplete ? I really doubt would be useful for a user to see super long auto completed terms. Cheers > > > Regards, > Edwin > > > > On 15 June 2015 at 17:33, Ales

Re: Facet on same field in different ways

2015-06-16 Thread Alessandro Benedetti
Hi Phanindra, Have you tried this syntax ? &facet=true&facet.field={!ex=st key=terms facet.limit=5 facet.prefix=ap}query_terms&facet.field={!key=terms2 facet.limit=1}query_terms&rows=0&facet.mincount=1 This seems the proper syntax, I found it here : https://issues.apache.org/jira/browse/SOLR-4717

Re: Phrase query get converted to SpanNear with slop 1 instead of 0

2015-06-16 Thread Alessandro Benedetti
Hi Ariya, I think Hossman specified you that the slop 1 is fine in your use case :) Of course in the case using span queries was what you were expecting ! Cheers 2015-06-16 10:13 GMT+01:00 ariya bala : > Ok. Thank you Chris. > It is a custom Query parser. > I will check my Query parser on where

Re: phrase matches returning near matches

2015-06-16 Thread Alessandro Benedetti
Can you show us how the query is parsed ? You didn't tell us nothing about the query parser you are using. Enable the debugQuery=true will show you how the query is parsed and this will be quite useful for us. Cheers 2015-06-16 11:22 GMT+01:00 Alistair Young : > Hiya, > > I've been looking for

Re: phrase matches returning near matches

2015-06-16 Thread Alessandro Benedetti
; > 0.0 > > > 0.0 > > > 0.0 > > > 0.0 > > > 0.0 > > > 35.0 > > > > > > > thanks, >

Re: How to create concatenated token

2015-06-16 Thread Alessandro Benedetti
Can I ask you why you need to concatenate the tokens ? Maybe we can find a better solution to concat all the tokens in one single big token . I find it difficult to understand the reasons behind tokenising, token filtering and then un-tokenizing again :) It would be great if you explain a little bi

Re: Solr's suggester results

2015-06-17 Thread Alessandro Benedetti
whole fields. You _might_ > > >> be able to add multiple fragments to a multiValued > > >> entry and get fragments, I haven't tried that though > > >> and I suspect that actually you'd get the same thing.. > > >> > > >> This is an

Re: facet query is not working

2015-06-18 Thread Alessandro Benedetti
If he has not put any appends or invariant in the request handler, facet=true is mandatory to activate the facets. I haven't tried those specific facet queries . I hope the problem was not simply he didn't activate faceting ... 2015-06-18 10:35 GMT+01:00 Mikhail Khludnev : > isn't facet=true ne

Re: Suggester for text array

2015-06-18 Thread Alessandro Benedetti
Hi Advait , First of all I suggest you to study Solr a little bit [1]. because your requirements are actually really simple : 1) You can simply use more than one suggest dictionary if you care to keep the suggestions separated ( keeping if a term is coming from the name or from the the category)

Re: Duplicate suggestions

2015-06-18 Thread Alessandro Benedetti
I had the very same issue, because I had some document with a redundant field, and I was using the Infix Suggester as well. Because the Infix Suggester returns the whole field content, if you have duplicated fields across your docs, you will se duplicate suggestions. Do you have any intermediate

Re: Error when submitting PDF to Solr w/text fields using SolrJ

2015-06-18 Thread Alessandro Benedetti
We would like more information, but the first thing I notice is that hardly would make any sense to use a "string" type for a file content. Can you give more details about the exception ? Have you debugged a little bit ? How does the solr input document look before it is sent to Solr ? Furthermor

Re: Auto-suggest in Solr

2015-06-19 Thread Alessandro Benedetti
Actually the documentation is not clear enough. Let's try to understand this suggester. *Building* This suggester build a FST that it will use to provide the autocomplete feature running prefix searches on it . The terms it uses to generate the FST are the tokens produced by the "suggestFreeTextA

Re: Error when submitting PDF to Solr w/text fields using SolrJ

2015-06-19 Thread Alessandro Benedetti
I definitely agree with Erick, the stack trace you posted is not complete again. This is an example of the same problem you got with a complete, meaningful stack trace : " Stacktrace you provided : org.apache.solr.common.SolrException: Exception writing document id 12345 > to the index; possible a

Re: Error when submitting PDF to Solr w/text fields using SolrJ

2015-06-19 Thread Alessandro Benedetti
Silly thing … Maybe the immense token was generating because trying to set "string" as field type for your text ? Can be ? Can you wipe out the index, set a proper type for your text, and index again ? No worries about the not full stack trace, We learn and do wrong things everyday :) Errare humanu

Re: Error when submitting PDF to Solr w/text fields using SolrJ

2015-06-19 Thread Alessandro Benedetti
So, the first I can say is if that is true : "it almost killed Solr with 280 files" you are doing something wrong for sure. At least if you are not trying to index 4k full movies xD Joking apart : 1) You should carefully design your analyser. 2) You should store your fields initially to verify you

Re: Nested objects and map in Solr

2015-06-22 Thread Alessandro Benedetti
I would suggest you to take a look to the Solr Join ( block and query time join) . This is what you are looking for. Anyway, this request points out that the documentation is not good enough to address people to Nested Objects problems. Maybe this should highlight the need of improving that part of

Re: Understanding the MoreLikeThis Handler

2015-06-22 Thread Alessandro Benedetti
The syntax seems find to me. One of the requirement for the MLT is to have the field(s) to use for the processing to be stored ( if termVector is enabled better) . Apparently from your snippets this is not your problem. Can you confirm you have the field you are interested stored ( it seems so fro

Re: Nested objects and map in Solr

2015-06-22 Thread Alessandro Benedetti
I play with this > approach and others. > > Cheers > > On 22 Jun 2015, at 11:23, Alessandro Benedetti <mailto:benedetti.ale...@gmail.com>> wrote: > > I would suggest you to take a look to the Solr Join ( block and query time > join) . > This is what you are look

Re: Auto-suggest in Solr

2015-06-22 Thread Alessandro Benedetti
Can any of our beloved super guru take a look to my mail ? It could help Edwin as well :) Cheers 2015-06-19 11:53 GMT+01:00 Alessandro Benedetti : > Actually the documentation is not clear enough. > Let's try to understand this suggester. > > *Building* > This suggester

Re: Solr Exact match boost Reduce the results

2015-06-23 Thread Alessandro Benedetti
Hi Jack, 2015-06-23 6:27 GMT+01:00 JACK : > Hi Alessandro Benedetti, > > I have changed the query like this. > > > /select?q=("dell+laptop"~13+OR+"dell+laptop")&df=product_name&defType=edismax&qf=product_name^0.001+dummy_product_name^20

Re: Understanding the MoreLikeThis Handler

2015-06-23 Thread Alessandro Benedetti
You are welcome ;) 2015-06-23 9:27 GMT+01:00 Sreekant Sreedharan : > This has been resolved. The issue was indeed the mlt.mintf value. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Understanding-the-MoreLikeThis-Handler-tp4213279p4213399.html > Sent from the Solr

Re: Question regarding getting back results from middle of word

2015-06-23 Thread Alessandro Benedetti
It sounds the classic XY problem , can you explain us a little bit better your problem ? Why you have such strange field content, how do you produce it ? Can this be solved with an analysis ad hoc for your language ? It sounds to me as a tokenization problem, and you are not going to solve it usin

Re: copyField based on value of another field

2015-06-23 Thread Alessandro Benedetti
You should work at the UpdateProcessor level : https://wiki.apache.org/solr/UpdateRequestProcessor#Implementing_a_conditional_copyField This should give you some hint. Cheers 2015-06-23 13:45 GMT+01:00 Alistair Young : > Hi folks, > > is it possible to copyField only if another field has a cer

Re: Costume searchHandlers in a multi core envirment

2015-06-23 Thread Alessandro Benedetti
Let's start from this : "I have a search handler I wrote that runs a sub query so that the main query I send to the SearchHandler is extended." What is the problem you are searching to solve ? Why a classic filter query or re-ranking query is not ok for you ? Can you give us some indication of tha

Re: Solr returning weird results

2015-06-23 Thread Alessandro Benedetti
In this situations I would suggest you to use the DebugQuery=true. To simplify the understanding you can also use : splainer.io . Really nice tool to quickly identify why a document is there. Cheers 2015-06-23 15:37 GMT+01:00 Freakheart : > I am trying to set up Solr for my data, I have configur

Re: "More" facets or "Less" facets in the Velocity UI

2015-06-23 Thread Alessandro Benedetti
This is strictly a front end "development" . You need to modify the velocity template to provide that feature UI side . Solr side you configure your facet.limit ( on a per field basis if necessary). In the "browse" example it's in the appended params under the specific request handler. Cheers 2

Re: Creating A User Interface On Top of Solr

2015-06-24 Thread Alessandro Benedetti
Erick, related that I noticed that a lot of times, a developer would need an intermediate API that will proxy the Search UI requests to Solr. Of course there are scenarios where is necessary to build this intermediate API ( for example if you customise how the results must be processed after Solr

Re: /suggest through SolrJ?

2015-06-24 Thread Alessandro Benedetti
https://issues.apache.org/jira/browse/SOLR-7719 I will work on it as soon as I can, it is very simple. Cheers 2015-05-06 13:38 GMT+01:00 Alessandro Benedetti : > Exactly Tomnaso , > I was referring to that ! > > I wrote another mail in the dev mailing list, I will open a Jira Issu

Re: /suggest through SolrJ?

2015-06-25 Thread Alessandro Benedetti
I have provided a Patch, actually i am not sure about the contribution process, i will read the documentation. Can anybody give me a feedback ? https://issues.apache.org/jira/browse/SOLR-7719 Cheers 2015-06-24 14:31 GMT+01:00 Alessandro Benedetti : > https://issues.apache.org/jira/browse/S

Re: Exact phrase search on very large text

2015-06-26 Thread Alessandro Benedetti
I agree with Updaya, furthermore It doesn't make any sense to try to solve a "Phrase search" problem , not tokenising at all the text … It's not going to work and it is fundamentally wrong to not tokenise long textual fields if you want to do free text search in them. Can you explain us better your

Re: Solr Suggester not working.

2015-06-26 Thread Alessandro Benedetti
I agree with David, I see a Ton of wrong configuration in yours … Please have a read of the documentation linked . And take a look to this mailing list, we have tons of messages related that can help you. A first suggestion for you anyway, is to take care of your analysis. The suggestions will be t

Re: Auto-suggest in Solr

2015-06-26 Thread Alessandro Benedetti
Up, Can anyone gently take a look to my considerations related the FreeText Suggester ? I am curious to have more insight. Eventually I will deeply analyse the code to understand my errors. Cheers 2015-06-19 11:53 GMT+01:00 Alessandro Benedetti : > Actually the documentation is not cl

Re: Upgrade to 5.2 from 4.6, no storing of text

2015-06-26 Thread Alessandro Benedetti
Actually storing or not storing a field is a simple schema.xml configuration. This suggestion can be obvious, but … have you checked you have your "stored" attribute set "true" for the field you are interested ? I am talking about the 5.2 schema. Cheers 2015-06-26 12:24 GMT+01:00 Mark Ehle : >

Re: Exact phrase search on very large text

2015-06-26 Thread Alessandro Benedetti
You are tokenising … "" Be careful in doing first the lowercase token filter. It's a best practice to first charFilter, then Tokenize and finally the set of Token Filters. Cheers 2015-06-26 13:27 GMT+01:00 Mike Thomsen : > I tried creating a simplified new text field type that only did lower > c

Re: Auto-suggest in Solr

2015-06-27 Thread Alessandro Benedetti
ties here. Don't quite know whether they monitor this list, > consider the dev list? > > Best, > Erick > > On Fri, Jun 26, 2015 at 4:53 AM, Alessandro Benedetti > wrote: > > Up, Can anyone gently take a look to my considerations related the > FreeText > > Sugg

Re: Questions regarding autosuggest (Solr 5.2.1)

2015-06-30 Thread Alessandro Benedetti
I would like to add some consideration if possible. I find the field type really hard analysed, are you sure is this ok with your suggestions requirement ? Usually is better to keep the field for suggestion as less analysed as possible and then play with the different type of suggesters. If you not

Re: Some guidance on memory requirements/usage/tuning

2015-06-30 Thread Alessandro Benedetti
Am I wrong or the current type of default IndexDirectory is the "NRTCachingDirectoryFactory" since Solr 4.x ? If I remember well this Factory is creating a Directory implementation built on top of a "MMapDirectory". In this case we should rely on the Memory Mapping Operative System feature to prope

Re: Restricting fields returned by Suggester reult.

2015-06-30 Thread Alessandro Benedetti
Actually what you are asking does not make any sense. Solr response is returning that data structure because it must return as much as possible. It is responsibility of the client to get what it needs from the response. Talking about the Java Client, I contributed the SolrJ code to parse the Sugge

Re: Reading indexed data from solr 5.1.0 using admin/luke?

2015-06-30 Thread Alessandro Benedetti
Do you have the original document available ? Or stored in the field of interest ? Should be quite an easy test to reproduce the Analysis simply using the analysis tool Upaya and Erick suggested. Just use your real document content and you will see how it is exactly analysed. Cheers 2015-06-30 15

Re: Upgrade to 5.2 from 4.6, no storing of text

2015-06-30 Thread Alessandro Benedetti
quot;true" required="true" multiValued="true"/> > > > > stored="true" omitNorms="true"/> > > stored="false"/> > omitNorms="true"/> > multiValued="true"/> &g

Re: Upgrade to 5.2 from 4.6, no storing of text

2015-06-30 Thread Alessandro Benedetti
> > used to produce snippets of highlited text in 4.6. In 5.2 it does not. > > > Thanks - > > Mark Ehle > Computer Support Librarian > Willard Library > Battle Creek, MI > > > On Tue, Jun 30, 2015 at 10:50 AM, Alessandro Benedetti < > benedetti.ale...@gma

Re: Reading indexed data from solr 5.1.0 using admin/luke?

2015-06-30 Thread Alessandro Benedetti
ooting than trying to do > anything in a production environment. > > I ll try looking into the Luke program if i can get this done. > > Thanks and Best Regards, > Dinesh Naik > > On Tue, Jun 30, 2015 at 7:42 PM, Alessandro Benedetti < > benedetti.ale...@gmail.com>

Re: Restricting fields returned by Suggester reult.

2015-07-01 Thread Alessandro Benedetti
ybe this is what you meant. Knowing that, you can understand your question is quite obscure. Giving this knowledge, are you able to reformulate better your real problem ? 2015-07-01 6:54 GMT+01:00 ssharma7...@gmail.com : > Alessandro Benedetti, > Thanks for the update. > > Actually, w

Re: Correcting text at index time

2015-07-01 Thread Alessandro Benedetti
Honestly, if I had to write a custom UpdateRequestProcessor I would go for a SynonymUpdateProcessor, taking in input the same Synonim file style SynonimTokenFilter is using. Would be much easier to configure and use it! Cheers 2015-07-01 2:55 GMT+01:00 Jack Krupansky : > You would have to have

Re: language identification during solrj indexing

2015-07-02 Thread Alessandro Benedetti
SolrJ is simply a java client to access Solr REST API. This means that " indexing through SolrJ" doesn't exist. You simply need to add the proper chain to the update request handler you are using. Taking a look to the code , by Default SolrJ UpdateRequest refers to the "/update" endpoint. Have you

Re: how to

2015-07-02 Thread Alessandro Benedetti
You request is very cryptic, actually I really discourage this kind of requests … Give always at least basic information for : 1) Environment ( Solr you are using ? Architecture ?) 2) Domain ( Problem you are trying to solve ? Data model ? ) 3) Specific problem with a generic and detailed descript

Re: Suggester duplicating values

2015-07-02 Thread Alessandro Benedetti
Hi Rafael, Your problem is clear and it has actually been explored few times in the past. I agree with you in a first instance. A Suggester basic unit of information is a term. Not a document. This means that actually it does not make a lot of sense to return duplicates terms ( because they are co

Re: DocValues: Which format is better Default or Memory?

2015-07-02 Thread Alessandro Benedetti
So first of all, DocValues is a strategy to store on the disk ( or in memory) the Un-inverted index for the field of interests. This has been done to SPEED UP the faceting calculus using the "fc" algorithm, and improve the memory usage. It is really weird that this is the cause of a degrading of pe

Re: Suggester duplicating values

2015-07-02 Thread Alessandro Benedetti
x27;s > Rafael > > On Thu, Jul 2, 2015 at 6:41 AM, Alessandro Benedetti < > benedetti.ale...@gmail.com> wrote: > > > Hi Rafael, > > Your problem is clear and it has actually been explored few times in the > > past. > > I agree with you in a first instan

Re: Suggester duplicating values

2015-07-02 Thread Alessandro Benedetti
eturn the Set to the view. Right ? > > []'s > Rafael > > On Thu, Jul 2, 2015 at 12:12 PM, Alessandro Benedetti < > benedetti.ale...@gmail.com> wrote: > > > No, I was referring to the fact that a Suggester as a unit of information > > manages simple terms whic

Re: LFU vs solr.FastLRUCache

2015-07-06 Thread Alessandro Benedetti
What is exactly your question ? I mean, what is the problem you are seeing using FastLRUCache? What is not convincing you in using the LFU ( it that one solves your requirement? ) Cheers 2015-07-06 5:11 GMT+01:00 William Bell : > Has anyone used solr.LFUCache in Production to replace: > > >

Re: AND for multiple faceted queries

2015-07-06 Thread Alessandro Benedetti
Hi Aki, First of all , not related your question, but be careful with the order of the Token Filters in the Analysis chain. The order is important, and you remove the stop words before you actually normalise the text lowercasing it. This can bring to errors… Then, let's analyse your query : 1) I d

Re: Solr UIMA Part Of Speech Tagging

2015-07-06 Thread Alessandro Benedetti
It is a little bit off topic, but why don't use the payload for a token , if you want to give a different weight to each token ? https://lucidworks.com/blog/end-to-end-payload-example-in-solr/ Cheers 2015-07-06 16:31 GMT+01:00 Erik Hatcher : > I’ve recently been tinkering with UIMATypeAwareAnno

Re: solr5 not woring in axis2

2015-07-07 Thread Alessandro Benedetti
it is actually not so easy to understand this mail, let me try anyway … Which version of SolrJ are you using ? With Solr 5.x the SolrServer actually became SolrClient ( which makes more sense) . This would actually produce a simple compilation exception so i guess it is not the problem… But i can

Re: Search inconsistency on Solr

2015-07-07 Thread Alessandro Benedetti
Hi, you pointed to a couple of issues related the Solr Cloud architecture. Is your problem involving querying different Solr nodes ? in the case you are testing a single node I find really hard to believe Solr scoring is not consistent ( assuming the index is not changing). Can you give us detail

Re: Remove operation of partial update doesn't work

2015-07-08 Thread Alessandro Benedetti
In this scenarios, Documentation is key : Modifier Usage set Set or replace the field value(s) with the specified value(s), or *remove the values if 'null' or empty list is specified as the new value.* May be specified as a single value, or as a list for multivalued fields add Adds the speci

Re: Solr Boost Search word before Specific Content

2015-07-08 Thread Alessandro Benedetti
Thanks Ahmet for the proposed Solution, that should work, but it is really hardcoded and coupled with the specific keyword ( "with" in the example) . I recently read an article from master Doug ( http://opensourceconnections.com/blog/2014/12/08/title-search-when-relevancy-is-only-skin-deep/ ) . I

Re: Sorting documents by child documents

2015-07-08 Thread Alessandro Benedetti
I would like to get a deep understanding of your problem… How do you want to sort a parent document by a normal field of children ?? Example : Document 1 Id: 5 Children 1 Id:51 Title : "A" Children 2 Id:52 Title : "Z" Document 2 Id: 6

Re: Too many Soft commits and opening searchers realtime

2015-07-08 Thread Alessandro Benedetti
So you are saying that no-one is triggering any commit, and that the auto soft commit solution is not actually waiting the proper time ? I suspect something is not like described, because if the Auto Soft commit was not working I would expect thousands of bugs raised. let's dig a little bit into d

Re: Indexed field to schema field

2015-07-08 Thread Alessandro Benedetti
I am really sorry Gajendra, but what do your latex mails mean ? Why classic field boosting is not an option for you ? Are you developing a custom query parser ? What are the parameter expected for this query parser ? What is the behaviour expected ? It is really hard to help with such fragmented in

Re: Tlog replay

2015-07-08 Thread Alessandro Benedetti
Hi Summer, If you take a look to the CommitUpdateCommand class, you will notice no Flag is in there. // this is the toString for example @Override public String toString() { return super.toString() + ",optimize="+optimize +",openSearcher="+openSearcher +",waitSearcher="+wai

Re: Search Handler Question

2015-07-08 Thread Alessandro Benedetti
You are actually describing the Edismax Query parser ( which does what you quoted and even more) : https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser Take a look there, probably with a little tuning this is going to be a good fit for you. If any additional questions

Re: Remove operation of partial update doesn't work

2015-07-08 Thread Alessandro Benedetti
quot;tagId": {"remove": "someTagId"} > } > > After commit, there is still taId: someTagId in my document. > > ​Here is my schema part for tagId: > > > Thanks, > Mohsen > > On Wed, Jul 8, 2015 at 3:26 PM, Alessandro Benedetti < > benede

Re: Synonym with Proximity search in solr 5.1.0

2015-07-08 Thread Alessandro Benedetti
Showing your debug query would clarify the situation, but I assume you got into a classic multi-word synonym problem[1] . Hope the documents I pointed out are good for you. Cheers [1] http://nolanlawson.com/2012/10/31/better-synonym-handling-in-solr/ [2] http://lucidworks.com/blog/solution-for-mu

Re: Difference in WordDelimiterFilter behavior between 4.7.2 and 4.9.1

2015-07-08 Thread Alessandro Benedetti
Taking a look into the documentation I see this inconsistent orderings in my opinion : *Example:* Concatenate word parts and number parts, but not word and number parts that occur in the same token. *In:* "hot-spot 100+42 XL40" *Tokenizer to Filter:* "hot-spot"(1), "100+42"(2), "XL40"(3

Re: Synonym with Proximity search in solr 5.1.0

2015-07-08 Thread Alessandro Benedetti
. > > The issue here is , my searched text is a part of field 'text' . > > I like nokia mobile > > searched text: "nokia mobile"~500. > > Best Regards, > Dinesh Naik > > On Wed, Jul 8, 2015 at 8:36 PM, Alessandro Benedetti < > benedetti.ale..

Re: Difference in WordDelimiterFilter behavior between 4.7.2 and 4.9.1

2015-07-08 Thread Alessandro Benedetti
On 7/8/2015 9:26 AM, Alessandro Benedetti wrote: > > Taking a look into the documentation I see this inconsistent orderings in > > my opinion : > > Alessandro, thank you for your reply. I couldn't really tell what you > were saying. I *think* you were agreeing with m

Re: Too many Soft commits and opening searchers realtime

2015-07-09 Thread Alessandro Benedetti
Cool ! So actually you were not using the default you defined in th Solrconfig, but it was loaded from a java environment property set to be "3" ms ? Cheers 2015-07-09 4:21 GMT+01:00 Summer Shire : > Yonik, Mikhail, Alessandro > > After a lot of digging around and isolation, All u guys were

Re: Do I really need copyField when my app can do the copy?

2015-07-09 Thread Alessandro Benedetti
Let me answer in line : 2015-07-09 9:35 GMT+01:00 Nir Barel : > Hi, > > I wants to add a question regarding copyField and LowerCaseFilterFactory > We notice that LowerCaseFilterFactory takes huge part of the CPU ( via > profiling ) for the text filed > Can we avoid it or improve that implementati

Re: Solr Grouping - sorting groups based on the sum of the scores of the documents within each group

2015-07-10 Thread Alessandro Benedetti
Hi Emilio, looking into the Stackoverflow there were a couple of solutions using faceting. So my first question : Is it faceting good for you ? ( faceting is different from grouping as you will only see the countings) . Do you need only to sort by that value, or to return it in each group ? Cheers

Re: Protwords in solr spellchecker

2015-07-10 Thread Alessandro Benedetti
So let's try to analyse the situation from the spellchecking point of view . First of all we follow David suggestions and we add in the QueryTime analysis, the StopWordsFilter, with our configured "bad" words. *Starting scenario* - we have the protected words in our index, we still want them to be

Re: Auto-suggest in Solr

2015-07-10 Thread Alessandro Benedetti
r the FreeTextSuggester ( which finally I clarified Erick, thanks to Mike answer in dev, and deep code analysis and testing :) ) Cheers 2015-06-27 23:51 GMT+01:00 Alessandro Benedetti : > Thanks, Erick, i didn't have time to go again through the code. > But i will forward this to the Dev list. >

Re: Solr "search in different servers based on search keyword"

2015-07-13 Thread Alessandro Benedetti
Hi Arijit, let me clarify some points, ok? 2015-07-13 6:22 GMT+01:00 Arijit Saha : > Hi Solr/ lucene Experts, > > We are planning to build a solr/ lucene search application. > > As per design requirement, the files (on which search operation require to > be done) will be lying in separate server

Re: Suggester configuration queries.

2015-07-13 Thread Alessandro Benedetti
Using the term component to get Auto-suggest is a very old approach, and gives minimal features… If it is ok for you, ok! I would suggest these reading for Auto suggestions : Suggester Solr wiki Solr suggester

Re: Trouble getting a solr join query done

2015-07-13 Thread Alessandro Benedetti
I was to comment the very same solution! I think this will satisfy the user requirement. Thanks Antonio! Cheers 2015-07-13 12:22 GMT+01:00 Antonio David Pérez Morales < adperezmora...@gmail.com>: > Hi again Yusnel > > Just to confirm, I have tested your use case and the query which returns > wha

Re: Querying Nested documents

2015-07-13 Thread Alessandro Benedetti
Hi Rameshn, I would suggest you to rewrite your mail. It is really heavy to understand! Try to format your document and nested document in a nice way ( remember a document is a map field-> value), let's try to not over complicate the things ! Furthermore, try to express the query as well not encod

Re: Querying Nested documents

2015-07-14 Thread Alessandro Benedetti
Do you mean this ? I want all the children with a specific value for image_uri_s and all the children which have not that value. In this case i would go with : childFilter=(image_uri_s:) OR (-image_uri_s:*) Is this what do you want ? Cheers 2015-07-14 14:58 GMT+01:00 rameshn : > The problem is

Re: Phrase query not matching exact tokens in some cases

2015-07-14 Thread Alessandro Benedetti
Which kind of Highlighter are you using ? Anyway it is responsibility of your analysis chain. it is an heavy analysis chain and I can see : "solr. HunspellStemFilterFactory" If you are using the term vector for your field, to be used by your highlighter, in the term vector , for each document, you

Re: Difference in WordDelimiterFilter behavior between 4.7.2 and 4.9.1

2015-07-14 Thread Alessandro Benedetti
Just found this interesting article of Mike, that actually explains the sausagization problem, which actually is related to the strange positions in some case. http://blog.mikemccandless.com/2012/04/lucenes-tokenstreams-are-actually.html Cheers 2015-07-09 1:13 GMT+01:00 Yonik Seeley : > On Wed,

Re: Difference in WordDelimiterFilter behavior between 4.7.2 and 4.9.1

2015-07-14 Thread Alessandro Benedetti
-14 17:16 GMT+01:00 Alessandro Benedetti : > Just found this interesting article of Mike, that actually explains the > sausagization problem, which actually is related to the strange positions > in some case. > > > http://blog.mikemccandless.com/2012/04/lucenes-tokenstreams

Re: Querying Nested documents

2015-07-14 Thread Alessandro Benedetti
Not sure the '-' is supported by that queryParser, can you check with the NOT operator ? If not I will check in the code. Cheers 2015-07-14 21:56 GMT+01:00 Ramesh Nuthalapati : > Yes you are right. > > So the query you are saying should be like below .. or did I misunderstood > it > > http://lo

Re: To the experts: howto force opening a new searcher?

2015-07-15 Thread Alessandro Benedetti
Triggering a commit , implies the new Searcher to be opened in a soft commit scenario. With an hard commit, you can decide if opening or not the new searcher. But this is probably a X/Y problem. Can you describe better your real problem and not the way you were trying to solve it ? Cheers 2015-

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
This is kinda weird and looks a lot like a bug. Let me try to reproduce it locally! I let you know soon ! Cheers 2015-07-15 10:01 GMT+01:00 Martínez López, Alfonso : > Hi, > > i'm using Solr 4.10.3, and i'm trying update a doc field using atomic > update (http://wiki.apache.org/solr/Atomic_Updat

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
Just tried, on Solr 5.1 and I get the proper behaviour. Actually where is the value for the dinamic_desc coming from ? I can not see it in the updates and actually it is not in my index. Are you sure you have not forgotten any detail ? Cheers 2015-07-15 11:48 GMT+01:00 Alessandro Benedetti

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
#x27;, instead of updating the value, like if 'desc_field' or > 'desc_*' where multivalued. > > Cheers. > > From: Alessandro Benedetti [benedetti.ale...@gmail.com] > Sent: Wednesday, July 15, 2015 12:56 PM > To: solr-

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
... Because the check is actually checking in already used fields, not expecting the copy field to be already valorised. Hence the exception coming. I will create an issue for that and provide a patch as soon as I have time ( or anyone can provide the patch). Cheers 2015-07-15 12:2

Re: To the experts: howto force opening a new searcher?

2015-07-15 Thread Alessandro Benedetti
t; > > Sure, I could first add, then delete a document and do a commit. > > Or may be only do a fake update of a document with a commit (if this > works). > > But I don't want any changes on the index, just start a new searcher > > and close the old one. This is my pr

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
Hey Shawn, I was debugging a little bit,this is the problem : When adding a field from the solr document, to the Lucene one, even if this document was previously added by the execution of the copy field instruction to the Lucene Document, this check is carried : org/apache/solr/update/DocumentBui

Re: Does update field feature work in a schema with dynamic fields?

2015-07-15 Thread Alessandro Benedetti
Sorry Erick, I completely agree with you, I didn;'t specify in details what I was thinking : " copy fields must not be executed if the updated field is not a source field ( in a copy field couple) " furthermore I agree again with you, copy field should try to give a different analysis to the new

Re: Querying Nested documents

2015-07-15 Thread Alessandro Benedetti
2015-07-15 16:01 GMT+01:00 Mikhail Khludnev : > 1. I can't get your explanation. > > 2. childFilter=(image_uri_s:somevalue) OR (-image_uri_s:*) > is not correct, lacks of quotes , and pointless (selecting some term, and > negating all terms gives nothing). Not considering the syntax, We are talk

Re: Which default Boolean operator to set, AND or OR?

2015-07-15 Thread Alessandro Benedetti
Talking about performances you should take a look to the difference in performance between : - disjunction of K sorted arrays ( n*k*log(k)) in Lucene - where *k* are the disjunction clauses and *n* the average posting list size (just learned today from an expert lucene committer)) - conjunction

Re: Querying Nested documents

2015-07-15 Thread Alessandro Benedetti
ean -color:[* TO *] => "numFound": 0, > color:orlean (*:* -color:[* TO *]) => "numFound": 602097, > > fyi > https://lucidworks.com/blog/why-not-and-or-and-not/ > > > On Wed, Jul 15, 2015 at 10:55 AM, Alessandro Benedetti < > benedetti.ale...@gma

<    1   2   3   4   5   6   7   >