I'm creating web site to compare prices and products. I decided to use SharePoint Search 2010 to crawl the content of web site to find certain products and get data like title, price, description and image for that product.
Sample html code:
<body> <h2>ACER TM8172 11.6/I3-380UM/4/320/BT/3G/7P</h2> <br /><br /> <table> <tr> <td valign="top"> <img src="images/acer_TM8172.jpg" alt="ACER TM8172" /><br /> </td> <td valign="top"><br /> <b>Price:</b> 669.- € <br /> <b>Availability:</b> Stock (29)<br /> <b>Description:</b><span>The range of notebooks ...</span> </td> </tr> </table> </body>
SharePoint Search have many crawl properties (89) for web content. I can retrieve values from tags like title, path, h1, h2 and so on but not let's say form table or paragraph tag.
I made VS console application project to test values I could retrieve using KeywordQuery. Something like this:
KeywordQuery query = new KeywordQuery(SSAProxy); query.SelectProperties.Add("Title"); query.QueryText = "acer"; query.ResultsProvider = SearchProvider.SharepointSearch; query.ResultTypes |= ResultType.RelevantResults; ResultTableCollection searchResults = query.Execute(); ..
Everything works but I retrieve only those values which properties I add (e.g Title). Is there a way to retrieve the rest of the body text (for which the crawl property is not exist) so I can still filter out those values I need?
I know that one solution is to implement custom IFilter for that case, but I really don't wanna do that. Or maybe there is a third option?