|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
I'm not getting the results I expect when there is an apostrophe in a title. I'm referring to the keyboard character to the right of the semicolon, not the typographic single quote mark. I have the following document in the index: Title: Moody's Stories Summary: Moody's Stories Document text: Dwight Lyman Moody DLM URI: http://our.domain.com/lyb22625-41523
I am using the search feature in Keyoti SearchUnit to return 25 sample results. When I search for "Moody's Stories" without quotes, I get 25 results, but this document is not one of them. When I do the same search on our website, there are 85 results, and this document is in the middle of the list. When I search for "Moody's Stories" with quotes, I get no results (in SearchUnit and on our site). I've tried searches with other words that contain apostrophes with varied results. It seems that often it will give results when the word with the apostrophe is in the document text, as opposed to the title. I use the default weighting, and I thought having the words in the title had more weight.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
So I can try this, what file type is the document? Can you send it or link to it? -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
I just sent you an email with some more information.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Thanks, I indexed that link and searched for it in Index Manager using "moody's stories" and also moody's stories - both worked. Please try it there, I suspect you have code that is affecting this perhaps? Try to strip it back down, or use one of our example projects. -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
I am generating the index with a program, not by indexing links. In my first post I gave the exact data that is being passed to the PreloadedDocument constructor for this book. If that document is selected by a search, then the link I sent you in my email is what would be displayed when the search hit is clicked.
Can you generate an index with just the data I listed above and see what a search in the Index Manager yields with that index?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Oh I see, then you need to include the title in the document text. The document text is what is searchable. -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
Okay. I thought that the following configuration properties meant that the title and URL participate in the index and search results like the document text:
<WordWeightFactorBody>10</WordWeightFactorBody> <WordWeightFactorTitle>100</WordWeightFactorTitle> <WordWeightFactorUrl>90</WordWeightFactorUrl>
What do these properties apply to?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
It does, but the difference is that the text for the PreloadedDocument needs to include the title, it doesn't equate directly to the 'Body' in the params above. I.e. PreloadedDocument text is everything you want indexed. -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
|
|