Difference between search strings

2014-05-15 Thread nativecoder
Can someone please tell me the difference between searching a text in the
following ways

1. q=Exact_Word:samplestring - What does it tell to solr  ?

2. q=samplestringqf=Exact_Word - What does it tell to solr  ?

3. q=samplestringqf=Exact_Word - What does it tell to solr  ?
 
I think the first and the third one are the same.  is it correct ? How does
it differ from the second one.

I am trying to understand how enclosing the full term in  is resolving the
solr specific special character problem? What does it tell to solr  ? e.g If
there is ! mark in the string solr will identify it as a NOT, ! is part
of the string. This issue can be corrected if the full string is enclosed in
a . 






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Difference-between-search-strings-tp4135571.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: KeywordTokenizerFactory splits the string for the exclamation mark

2014-05-14 Thread nativecoder
Also could you please tell me the difference between searching a text in the
following ways

q=Exact_Word:samplestring

q=samplestringqf=Exact_Word

I am trying to understand how enclosing the full term in  is resolving
this problem ? What does it tell to solr  ?

Other than the exclamation mark are there any other characters which tells
specific things to solr



--
View this message in context: 
http://lucene.472066.n3.nabble.com/KeywordTokenizerFactory-splits-the-string-for-the-exclamation-mark-tp4135460p4135493.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: KeywordTokenizerFactory splits the string for the exclamation mark

2014-05-14 Thread nativecoder
Yes that happens due to the ! mark.

Also can someone please tell me the difference between searching a text in
the following ways

1. q=Exact_Word:samplestring

2. q=samplestringqf=Exact_Word

3. q=samplestringqf=Exact_Word

I think the first and the third one are the same.  is it correct ? How does
it differ from the second one.

I am trying to understand how enclosing the full term in  is resolving
this problem ? What does it tell to solr  ?

Other than the exclamation mark are there any other characters which tells
specific things to solr
On May 14, 2014 1:54 AM, nativecoder [via Lucene] 
ml-node+s472066n4135493...@n3.nabble.com wrote:

 Also could you please tell me the difference between searching a text in
 the following ways

 q=Exact_Word:samplestring

 q=samplestringqf=Exact_Word

 I am trying to understand how enclosing the full term in  is resolving
 this problem ? What does it tell to solr  ?

 Other than the exclamation mark are there any other characters which tells
 specific things to solr

 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lucene.472066.n3.nabble.com/KeywordTokenizerFactory-splits-the-string-for-the-exclamation-mark-tp4135460p4135493.html
  To start a new topic under Solr - User, email
 ml-node+s472066n472068...@n3.nabble.com
 To unsubscribe from KeywordTokenizerFactory splits the string for the
 exclamation mark, click 
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4135460code=cm9tcm9tMTIzQGdtYWlsLmNvbXw0MTM1NDYwfDE3MDI4MTA4MQ==
 .
 NAMLhttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://lucene.472066.n3.nabble.com/KeywordTokenizerFactory-splits-the-string-for-the-exclamation-mark-tp4135460p4135525.html
Sent from the Solr - User mailing list archive at Nabble.com.

KeywordTokenizerFactory splits the string for the exclamation mark

2014-05-13 Thread nativecoder
Hi All

I have a following field settings in solr schema

field name=quot;lt;bExact_Word* omitPositions=true
termVectors=false omitTermFreqAndPositions=true compressed=true
type=string_ci multiValued=false indexed=true stored=true
required=false omitNorms=true/

field name=Word compressed=true type=email_text_ptn
multiValued=false indexed=true stored=true required=false
omitNorms=true/

fieldtype name=string_ci class=solr.TextField sortMissingLast=true
omitNorms=trueanalyzertokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldtype

copyField source=Word dest=Exact_Word/

As you can see Exact_Email has the KeywordTokenizerFactory and that should
treat the string as it is.

But when I enter email with the following string
d!sdasdsdwasd...@dsadsadas.edu it splits the string to two. I was under
the impression that KeywordTokenizerFactory will treat the string as it is.
*!*
Following is the query debug result. There you can see it has split the word 
 parsedquery:+((DisjunctionMaxQuery((Exact_Email:d))
-DisjunctionMaxQuery((Exact_Email:sdasdsdwasd...@dsadsadas.edu)))~1),

can someone please tell why it produce the query result as this 

If I put a string without the ! sign as below, the produced query will be
as below

parsedquery:+DisjunctionMaxQuery((Exact_Email:testresu...@testdomain.com)),

I thought if the KeywordTokenizerFactory is applied then it should return
the exact string as it is

Please help me to understand what is going wrong here




--
View this message in context: 
http://lucene.472066.n3.nabble.com/KeywordTokenizerFactory-splits-the-string-for-the-exclamation-mark-tp4135460.html
Sent from the Solr - User mailing list archive at Nabble.com.


KeywordTokenizerFactory splits the string for the exclamation mark

2014-05-13 Thread nativecoder
Hi jack

Please have a look at this


I have a following field settings in solr schema

field name=bExact_Word omitPositions=true termVectors=false
omitTermFreqAndPositions=
true compressed=true type=string_ci multiValued=false indexed=true
stored=true required=false omitNorms=true/

field name=Word compressed=true type=email_text_ptn
multiValued=false indexed=true stored=true required=false
omitNorms=true/

fieldtype name=string_ci class=solr.TextField sortMissingLast=true
omitNorms=trueanalyzertokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldtype

copyField source=Word dest=Exact_Word/

As you can see Exact_Word has the KeywordTokenizerFactory and that should
treat the string as it is.

Following is my responseHeader. As you can see I am searching my string
only in the filed Exact_Word and expecting it to return the Word field and
the score

responseHeader:{
status:0,
QTime:14,
params:{
  explainOther:,
  fl:Word,score,
  debugQuery:on,
  indent:on,
  start:0,
  q:d!sdasdsdwasd!a...@dsadsadas.edu,
  qf:Exact_Word,
  wt:json,
  fq:,
  version:2.2,
  rows:10}},


But when I enter email with the following string d!
sdasdsdwasd...@dsadsadas.edu it splits the string to two. I was under the
impression that KeywordTokenizerFactory will treat the string as it is.

Following is the query debug result. There you can see it has split the word
 parsedquery:+((DisjunctionMaxQuery((Exact_Word:d))
-DisjunctionMaxQuery((Exact_Word:sdasdsdwasd...@dsadsadas.edu)))~1),

can someone please tell why it produce the query result as this

If I put a string without the ! sign as below, the produced query will be
as below
 parsedquery:+DisjunctionMaxQuery((
Exact_Word:d_sdasdsdwasd_...@dsadsadas.edu)),. This is what I expected
solr to even with the ! mark. with _ mark it wont do a string split and
treats the string as it is

I thought if the KeywordTokenizerFactory is applied then it should return
the exact string as it is

Please help me to understand what is going wrong here




--
View this message in context: 
http://lucene.472066.n3.nabble.com/KeywordTokenizerFactory-splits-the-string-for-the-exclamation-mark-tp4135474.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Help to Understand a Solr Query

2014-05-06 Thread nativecoder
When I go through the debug results I found this. Can someone explain me what
is the + and | sign means.

+(

 +DisjunctionMaxQuery(
(
  Exact_Field1:samplestring1^0.6 | 
  Exact_Field2:samplestring1^0.5 | 
  Field1:samplestring1^0.9 | 
  Field2:samplestring1 
 )
)
 +DisjunctionMaxQuery(
   (
   Exact_Field1:samplestring2^0.6 | 
  Exact_Field2:samplestring2^0.5 | 
  Field1:samplestring2^0.9 | 
  Field2:samplestring2 
)
  )
)





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134886.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Help to Understand a Solr Query

2014-05-06 Thread nativecoder
When I go through the debug results I found this. Can you explain me what
is the + and | sign means.

+(

 +DisjunctionMaxQuery(
(
  Exact_Field1:samplestring1^0.6 |
  Exact_Field2:samplestring1^0.5 |
  Field1:samplestring1^0.9 |
  Field2:samplestring1
 )
)
 +DisjunctionMaxQuery(
   (
   Exact_Field1:samplestring2^0.6 |
  Exact_Field2:samplestring2^0.5 |
  Field1:samplestring2^0.9 |
  Field2:samplestring2
)
  )
)




On Mon, May 5, 2014 at 11:42 PM, Alexandre Rafalovitch [via Lucene] 
ml-node+s472066n4134841...@n3.nabble.com wrote:

 If you are looking for that level of understanding, you are best
 enabling the debug flag. Then you will get a full breakdown of what
 matched which field and why. Including scores, preferences, etc.
 Possibly with debug.explained.structured enabled:
 http://wiki.apache.org/solr/CommonQueryParameters#debug.explain.structured

 Most people do not want to deep dive into debug info. But I am getting
 the feeling this would be right where you want to go.

 Regards,
Alex.
 Personal website: http://www.outerthoughts.com/
 Current project: http://www.solr-start.com/ - Accelerating your Solr
 proficiency


 On Tue, May 6, 2014 at 1:47 AM, nativecoder [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4134841i=0
 wrote:

  That answer helps a lot
 
  Where would the OR clause be ?
 
  (Exact_Field1:samplestring1 OR Exact_Field1:samplestring2) AND
  (Exact_Field2:samplestring1 OR Exact_Field2:samplestring2) AND
  (Field1:samplestring1 OR Field1:samplestring2) AND (Field2:samplestring1
  OR Field2:samplestring2)
 
  Please note that in my query it is an AND clause. I am trying to
 understand
  where the AND fits in. To be more precise my query is as below
 
  q=samplestring1 AND samplestring2defType: edismaxqf: Exact_Field1^1.0
  Exact_Field2^0.9 Field1^0.8 Field2^0.7fl= Column1, Column2
 
 
 
 
  --
  View this message in context:
 http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134775.html

  Sent from the Solr - User mailing list archive at Nabble.com.


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134841.html
  To unsubscribe from Help to Understand a Solr Query, click 
 herehttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4134686code=cm9tcm9tMTIzQGdtYWlsLmNvbXw0MTM0Njg2fDE3MDI4MTA4MQ==
 .
 NAMLhttp://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134887.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Help to Understand a Solr Query

2014-05-06 Thread nativecoder
Thank you this is what I was looking for all this time 

I wanted to understand how the query that I passed being evaluated by solr




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134904.html
Sent from the Solr - User mailing list archive at Nabble.com.


Explain Solr Query Execution

2014-05-05 Thread nativecoder
How will a query like below will get executed, In which order

I understand that when this query is executed fields mentioned in fieldList
will be returned. What I don't understand is how the samplestring1 and
samplestring2 will get searched with the query fields specified

I think I will be able to understand how the search happens if this can be
illustrated in SQL ( Just to understand what happens behind the scene)

Following is the query. Please have a look at it and let me know how this
works internally.
query=samplestring1 AND samplestring2
defType: edismax
queryFields: Exact_Field1^1.0 Exact_Field2^0.9 Field1^0.8 Field2^0.7
fieldList: Column1, Column2
resultRows: 10
startRow: 0

P.S samplestring1 AND samplestring2  are some test strings in the query

Sample of Schema for fields

fieldType name=sampletype1 class=solr.TextField
positionIncrementGap=100analyzer type=indextokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory/filter class=solr.NGramFilterFactory
minGramSize=5 maxGramSize=10//analyzeranalyzer
type=querytokenizer class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldType

fieldtype name=sampletype2 class=solr.TextField sortMissingLast=true
omitNorms=trueanalyzertokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldtype

field name=Field1 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Field2 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field1 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field2 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=false
omitNorms=true/

copyField source=Field1 dest=Exact_Field1/
copyField source=Field2 dest=Exact_Field2/



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Explain-Solr-Query-Execution-tp4134681.html
Sent from the Solr - User mailing list archive at Nabble.com.


Help to Understand a Solr Query

2014-05-05 Thread nativecoder
Hi All

I am completely new to solr and hoping to understand the basics. Can one of
you help me to understand what the following query does, in which order it
is getting executed

I understand that when this query is executed fields mentioned in fieldList
will be returned. What I don't understand is how the samplestring1 and
samplestring2 will get searched with the query fields specified

I think I will be able to understand how the search happens if this can be
illustrated in SQL ( Just to understand what happens behind the scene)

Following is the query. Please have a look at it and let me know how this
works internally.
query=samplestring1 AND samplestring2
defType: edismax
queryFields: Exact_Field1^1.0 Exact_Field2^0.9 Field1^0.8 Field2^0.7
fieldList: Column1, Column2
resultRows: 10
startRow: 0

P.S samplestring1 AND samplestring2  are some test strings in the query

Sample of Schema for fields

fieldType name=sampletype1 class=solr.TextField
positionIncrementGap=100analyzer type=indextokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory/filter class=solr.NGramFilterFactory
minGramSize=5 maxGramSize=10//analyzeranalyzer
type=querytokenizer class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldType

fieldtype name=sampletype2 class=solr.TextField sortMissingLast=true
omitNorms=trueanalyzertokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldtype

field name=Field1 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Field2 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field1 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field2 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=false
omitNorms=true/

copyField source=Field1 dest=Exact_Field1/
copyField source=Field2 dest=Exact_Field2/ 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Help to Understand a Solr Query

2014-05-05 Thread nativecoder
I already went through the link. I understand about the boosting factor for
the relevancy

query=samplestring1 AND samplestring2
defType: edismax
queryFields: Exact_Field1^1.0 Exact_Field2^0.9 Field1^0.8 Field2^0.7
fieldList: Column1, Column2 

I need to understand whether the samplestring1 and samplestring 2 both will
be searched in each field mentioned in queryFields. What I meant was ;

e.g (Exact_Field1:samplestring1 AND Exact_Field1:samplestring2) AND
(Exact_Field2:samplestring1 AND Exact_Field2:samplestring2) AND
(Field1:samplestring1 AND Field1:samplestring2) AND (Field2:samplestring1
AND Field2:samplestring2)

Is the above correct ?
 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134714.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Help to Understand a Solr Query

2014-05-05 Thread nativecoder
That answer helps a lot

Where would the OR clause be ? 

(Exact_Field1:samplestring1 *OR* Exact_Field1:samplestring2) AND
(Exact_Field2:samplestring1 *OR* Exact_Field2:samplestring2) AND
(Field1:samplestring1 *OR* Field1:samplestring2) AND (Field2:samplestring1
*OR* Field2:samplestring2)

Please note that in my query it is an AND clause. I am trying to understand
where the AND fits in.

*query=samplestring1 AND samplestring2*
defType: edismax
queryFields: Exact_Field1^1.0 Exact_Field2^0.9 Field1^0.8 Field2^0.7
fieldList: Column1, Column2 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134763.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Help to Understand a Solr Query

2014-05-05 Thread nativecoder
That answer helps a lot

Where would the OR clause be ?

(Exact_Field1:samplestring1 OR Exact_Field1:samplestring2) AND
(Exact_Field2:samplestring1 OR Exact_Field2:samplestring2) AND
(Field1:samplestring1 OR Field1:samplestring2) AND (Field2:samplestring1
OR Field2:samplestring2)

Please note that in my query it is an AND clause. I am trying to understand
where the AND fits in. To be more precise my query is as below

q=samplestring1 AND samplestring2defType: edismaxqf: Exact_Field1^1.0
Exact_Field2^0.9 Field1^0.8 Field2^0.7fl= Column1, Column2 




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-to-Understand-a-Solr-Query-tp4134686p4134775.html
Sent from the Solr - User mailing list archive at Nabble.com.


Explain Solr Query Execution

2014-05-04 Thread nativecoder
How will a query like below will get executed, In which order

q=samplestring1 AND samplestring2 fq= Field1^1.0 Field2^0.9 Field3^0.8
defType=edismax fl=samplefield1,samplefiled2,samplefiled3

I understand that when this query is executed fields mentioned in F1 will be
returned. What I don't understand is how the samplestring1 and
samplestring2 will get searched with the Field Queries specified

I think I will be able to understand how the search happens if this can be
illustrated in SQL ( Just to understand what happens behind the scene)




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Explain-Solr-Query-Execution-tp4134547.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Explain Solr Query Execution

2014-05-04 Thread nativecoder
Thank you very much for the reply. 

I made a mistake. Following is the query. Please have a look at it and let
me know how this works internally. I am new to Solr and I am trying to
understand how this works. This is something already there in the project I
am working

query=testuser.lastn...@hotmail.com AND testuser.lastname 
defType: edismax 
queryFields: Exact_Email^1.0 Exact_LoginName^0.9 Exact_LastName^0.8
Exact_FirstName^0.7 Email^0.6 LoginName^0.5 LastName^0.4 FirstName^0.3 
fieldList: Creation_Date,Email,FirstName,LastName,LoginName,PersonId,id 
resultRows: 250 
startRow: 0

P.S testuser.lastn...@hotmail.com AND testuser.lastname  are some test
strings in the query



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Explain-Solr-Query-Execution-tp4134547p4134552.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Explain Solr Query Execution

2014-05-04 Thread nativecoder
Hi Jack

I have updated the query correctly.

Please have a look



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Explain-Solr-Query-Execution-tp4134547p4134554.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Explain Solr Query Execution

2014-05-04 Thread nativecoder
Hi Jack

I have updated the query correctly.

Please have a look



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Explain-Solr-Query-Execution-tp4134547p4134555.html
Sent from the Solr - User mailing list archive at Nabble.com.


How Solr will execute a query mentioned below

2014-05-04 Thread nativecoder
How will a query like below will get executed, In which order 

I understand that when this query is executed fields mentioned in fieldList
will be returned. What I don't understand is how the samplestring1 and
samplestring2 will get searched with the query fields specified

I think I will be able to understand how the search happens if this can be
illustrated in SQL ( Just to understand what happens behind the scene) 

Following is the query. Please have a look at it and let me know how this
works internally.
query=samplestring1 AND samplestring2 
defType: edismax 
queryFields: Exact_Field1^1.0 Exact_Field2^0.9 Field2^0.8 Field3^0.7 
fieldList: Column1, Column2 
resultRows: 10
startRow: 0

P.S testuser.lastn...@hotmail.com AND testuser.lastname  are some test
strings in the query

Sample of Schema for fields

fieldType name=sampletype1 class=solr.TextField
positionIncrementGap=100analyzer type=indextokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory/filter class=solr.NGramFilterFactory
minGramSize=5 maxGramSize=10//analyzeranalyzer
type=querytokenizer class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldType

fieldtype name=sampletype2 class=solr.TextField sortMissingLast=true
omitNorms=trueanalyzertokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldtype

field name=Field1 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Field2 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field1 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field2 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=false
omitNorms=true/






--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-Solr-will-execute-a-query-mentioned-below-tp4134561.html
Sent from the Solr - User mailing list archive at Nabble.com.


Understand Solr Query Execution

2014-05-04 Thread nativecoder
How will a query like below will get executed, In which order

I understand that when this query is executed fields mentioned in fieldList
will be returned. What I don't understand is how the samplestring1 and
samplestring2 will get searched with the query fields specified

I think I will be able to understand how the search happens if this can be
illustrated in SQL ( Just to understand what happens behind the scene)

Following is the query. Please have a look at it and let me know how this
works internally.
query=samplestring1 AND samplestring2
defType: edismax
queryFields: Exact_Field1^1.0 Exact_Field2^0.9 Field1^0.8 Field2^0.7
fieldList: Column1, Column2
resultRows: 10
startRow: 0

P.S samplestring1 AND samplestring2  are some test strings in the query

Sample of Schema for fields

fieldType name=sampletype1 class=solr.TextField
positionIncrementGap=100analyzer type=indextokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory/filter class=solr.NGramFilterFactory
minGramSize=5 maxGramSize=10//analyzeranalyzer
type=querytokenizer class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldType

fieldtype name=sampletype2 class=solr.TextField sortMissingLast=true
omitNorms=trueanalyzertokenizer
class=solr.KeywordTokenizerFactory/filter
class=solr.LowerCaseFilterFactory//analyzer/fieldtype

field name=Field1 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Field2 compressed=true type=sampletype1
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field1 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=true
omitNorms=true/

field name=Exact_Field2 omitPositions=true termVectors=false
omitTermFreqAndPositions=true compressed=true type=sampletype2
multiValued=false indexed=true stored=true required=false
omitNorms=true/

copyField source=Field1 dest=Exact_Field1/
copyField source=Field2 dest=Exact_Field2/





--
View this message in context: 
http://lucene.472066.n3.nabble.com/Understand-Solr-Query-Execution-tp4134562.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Understand Solr Query Execution

2014-05-04 Thread nativecoder
Can someone help with me this request



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Understand-Solr-Query-Execution-tp4134562p4134617.html
Sent from the Solr - User mailing list archive at Nabble.com.