No match when querying but in admin/analysis it works!! (schema, indexed data and screen shots are provided)

2018-01-01 Thread Sami al Subhi
data_to_be_indexed.xml
  
schema.xml   

*above I uploaded a copy of my schema and data*

*I have this in my schema.xml*







  





  
  




  


*when using analysis on admin page it works and it does match as you can see
from the picture below:*

 


*I have this doc in indexed/stored. I can match it on other fields like
name_suggest_exact or name_sugget_ngram but never matches on
name_sugget_edge. I indexed the data multiple times and index is optimized.
what could be the issue here? this is really confusing*

 
 




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Sorting on Child document.

2018-01-01 Thread crezy
I am using solr 7.0.0.

This is my document.

[{
"id": 1,
"Name": "Book 1",
"Type": "Book", 
"_childDocuments_": [{
"id": 18,   
"Type": "DET",
  "Details":"foo foof ooof ",
"Download": 6
},{
"id": 19,   
"Type": "CAT",
  "Details":"bla bla bla bla..",
"Download": 7
}]
},
{
"id": 2,
"Name": "Book 2",
"Type": "Book", 
"_childDocuments_": [{
"id": 18,   
"Type": "DET",
  "Details":"foo foof ooof ",
"Download": 4
},{
"id": 19,   
"Type": "CAT",
  "Details":"bla bla bla bla..",
"Download": 6
}]
}]

Now I get all Parent document which is order by *Download* and Type=CAT.


I have refer many link and website not not get correct result.

Let me suggest if my doc is wrong indexing.

Thank you 




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: No match when querying but in admin/analysis it works!! (schema, indexed data and screen shots are provided)

2018-01-01 Thread Erick Erickson
First let me say that you did a great job of providing enough
information to diagnose! We're always more inclined to take time when
someone gives evidence of having already tried to solve the problem,
then provides enough information to work with

Your problem is, I think, WordDelimiterGraphFilterFactory (WDGFF) ,
particularly that you have splitOnCaseChange set to "1" at index time
and "0" at query time, and your input is iPhone.

Try entering (note capitalization)
iPhone
in your admin/analysis for both indexing and querying and you'll see
what I mean. BTW, unchecking "verbose" often makes the output easier
to read...


I suspect you may have the same issue with your straight n-grammed
field, but are matching on sub-parts of the query.

Best,
Erick


On Mon, Jan 1, 2018 at 3:25 AM, Sami al Subhi  wrote:
> data_to_be_indexed.xml
> 
> schema.xml 
>
> *above I uploaded a copy of my schema and data*
>
> *I have this in my schema.xml*
>
>  stored="true" multiValued="true"/>
>
> 
> 
>
> 
>   
> 
>  generateWordParts="1" generateNumberParts="1" catenateWords="0"
> catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
> 
> 
>  minGramSize="1"/>
>   
>   
> 
>  generateWordParts="0" generateNumberParts="0" catenateWords="0"
> catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>
> 
> 
>   
> 
>
> *when using analysis on admin page it works and it does match as you can see
> from the picture below:*
>
> 
>
>
> *I have this doc in indexed/stored. I can match it on other fields like
> name_suggest_exact or name_sugget_ngram but never matches on
> name_sugget_edge. I indexed the data multiple times and index is optimized.
> what could be the issue here? this is really confusing*
>
> 
> 
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html


Re: Lucene two-phase iteration question

2018-01-01 Thread Mikhail Khludnev
Hello, Wei.
Some first details have been discussed here
https://www.youtube.com/watch?v=BM4-Mv0kWr8
Unfortunately, things have changed from those times.

On Sat, Dec 23, 2017 at 1:43 AM, Wei  wrote:

> Hi,
>
> I noticed that lucene has introduced a new two-phase iteration API since 5,
> but could not get a good understanding of how it works. Are there any
> detail documentation or examples?  Does the two-phase iteration result in
> better query performance?  Appreciate your help.
>
> Thanks,
> Wei
>



-- 
Sincerely yours
Mikhail Khludnev


Re: Lucene two-phase iteration question

2018-01-01 Thread Wei
Hello Mikhail,

Thank you so much for the info. Trying to digest it first.Can you
elaborate more on what has changed? Any pointer is greatly appreciated.

Regards,
Wei

On Mon, Jan 1, 2018 at 10:04 AM, Mikhail Khludnev  wrote:

> Hello, Wei.
> Some first details have been discussed here
> https://www.youtube.com/watch?v=BM4-Mv0kWr8
> Unfortunately, things have changed from those times.
>
> On Sat, Dec 23, 2017 at 1:43 AM, Wei  wrote:
>
> > Hi,
> >
> > I noticed that lucene has introduced a new two-phase iteration API since
> 5,
> > but could not get a good understanding of how it works. Are there any
> > detail documentation or examples?  Does the two-phase iteration result in
> > better query performance?  Appreciate your help.
> >
> > Thanks,
> > Wei
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>